Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Creating 2 side by side DIV's within a Container

    k, just having some difficulty putting a second div, beside a DIV containing blog content...the URL right now ishttp://students.signalflare.ca/tylerras/SK/blog.shtml

    as u can see, i created the second DIV, and made the background Fusica, but i cannot get it to fill the space beside the blog div, even though i forced the size down to what i want it etc.

    here is the Page code:

    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <title>Spittin-Knowledge.com - THE ONE AND ONLY!</title>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="website design, ally noormohamed, anom, website development, anom.ca, website designer, BCIT, ally, noormohamed, designer, anom.ca, blog, student, web design and development" />
    <meta name="description" content="anom.ca is the website of Ally Noormohamed. Ally's a student at BCIT of website design and development." />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="generator" content="Blogger" />
    <link rel="alternate" type="application/atom+xml" title="A perspective on website design and development | Powered by Anom (Atom 0.3)" href="http://www.anom.ca/atom.xml" />
    <link rel="alternate" type="application/rss+xml" title="A perspective on website design and development | Powered by Anom (RSS 2.0)" href="http://www.anom.ca/rss.xml" />
    <link rel="service.post" type="application/atom+xml" title="A perspective on website design and development | Powered by Anom" href="https://www.blogger.com/atom/35673730" />
    <link rel="service.post" type="application/atom+xml" title="A perspective on website design and development | Powered by Anom (Atom 1.0)" href="http://www.blogger.com/feeds/35673730/posts/full" />

    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.blogger.com/rsd.g?blogID=35673730" />
    <style type="text/css">
    @import url("http://www.blogger.com/css/blog_controls.css");
    @import url("http://www.blogger.com/dyn-css/authorization.css?blogID=35673730");
    </style>

    <meta name="copyright" content="" />
    <meta name="robots" content="all" />

    <link rel="stylesheet" type="text/css" href="css/anom.css" media="screen" />
    </head>

    <body>
    <div id="container">

    <!-- header_image start -->

    <!-- header_image end -->

    <div id="gears_image"></div>
    <div id="nav"></div>



    <div id="content">
    <!--<h2>

    A perspective on website design and development | Powered by Anom

    </h2>-->

    <p></p>


    <!--
    <h2>Sunday, November 12, 2006</h2>
    -->

    <a name="116336274153298617"></a>


    <h2> <!-- should be h3-->

    Firefox Add-ons - Browsing Made Better

    </h2>


    <p>If Firefox is your browser of choice you may have heard of <a href="https://addons.mozilla.org/extensions.php?app=%7bec8030f7-c20a-464f-9b0e-13a3a9e97384%7d">Firefox Extensions</a>. The Extensions not only make browsing more fun but versatile.<br /><br /><a href="http://lorelle.wordpress.com/2006/11/11/awesome-lists-of-firefox-must-have-extensions-lists/">Lorelle on WordPress</a> says:<br /><br />"Firefox Extensions, now known as add-ons, are the utilities, tools and services that make the process of browsing not only fun, but powerful, putting Internet Explorer in the back of the browser pack with a mouthful of dust, in my humble opinion."<br /><br />My favourite add-on is the <a href="https://addons.mozilla.org/firefox/60/">Web Developer</a> by <a href="https://addons.mozilla.org/firefox/45/author/">Chris Pederick</a>. The Web Developer is a tool bar that contains menus with various web developer tools. One of the many tools is "CSS" which gives you the ability to view and edit the CSS of the webpage being displayed in your Firefox browser window.<br /><br />This is a great tool for being able to make changes to the CSS for your webpage and have the changes be displayed in real-time in your Firefox browser window.</p>

    <p>
    <em>posted by Ally Noormohamed @ <a href="http://www.anom.ca/2006/11/firefox-add-ons-browsing-made-better.html" title="permanent link">Sunday, November 12, 2006</a></em>



    <a class="comment-link" href="http://www.blogger.com/comment.g?blogID=35673730&amp;postID=116336274153298617"location.href=http://www.blogger.com/comment.g?blogID=35673730&amp;postID=116336274153298617;>0 comments</a>



    <span class="item-control admin-308257441 pid-1636872894"><a style="border:none;" href="http://www.blogger.com/post-edit.g?blogID=35673730&amp;postID=116336274153298617&amp;quickEdit=true" title="Edit Post"><span class="quick-edit-icon">&nbsp;</span></a></span>
    </p>

    <!--
    <h2>Monday, November 06, 2006</h2>
    -->

    <a name="116287155084360579"></a>


    <h2> <!-- should be h3-->

    Website Design - Functionality versus Aesthetics

    </h2>


    <p>An article I enjoyed reading: <a href="http://www.anom.ca/article_002.shtml">Website Designing - Looks vs. Works</a> <em> by Kathy John</em><br /><br />Designing a website that is functional and aesthetically pleasing may seem like an easy task however those who are more experienced will agree that it is not.<br /><br />Website designers and website design companies who can provide services that encompass functionally and aesthetics are in high demand.</p>

    <p>
    <em>posted by Ally Noormohamed @ <a href="http://www.anom.ca/2006/11/website-design-functionality-versus.html" title="permanent link">Monday, November 06, 2006</a></em>



    <a class="comment-link" href="http://www.blogger.com/comment.g?blogID=35673730&amp;postID=116287155084360579"location.href=http://www.blogger.com/comment.g?blogID=35673730&amp;postID=116287155084360579;>1 comments</a>



    <span class="item-control admin-308257441 pid-1636872894"><a style="border:none;" href="http://www.blogger.com/post-edit.g?blogID=35673730&amp;postID=116287155084360579&amp;quickEdit=true" title="Edit Post"><span class="quick-edit-icon">&nbsp;</span></a></span>
    </p>

    <!--
    <h2>Saturday, October 07, 2006</h2>
    -->

    <a name="116026925730425847"></a>


    <h2> <!-- should be h3-->

    The Evolution of Website Design

    </h2>


    <p>An article I enjoyed reading: <a href="http://www.anom.ca/article_001.shtml">Web Standards, Browsers And Designing For The Future</a> <span style="font-style: italic;">by James Opiko</span><br /><br />I was thought at BCIT to adhere to W3C standards when building websites to ensure their compatibility with web tools and applications and long term growth as the world wide web (browsers) conforms to standards. As I surf the web I find that the majority of the websites are not W3C compliant which may be acceptable at the present time however are bound to have trouble in the future.<br /><br />Website designers are not only to blame for the lack of comformaty because browsers such as Internet Explorer 6 are part of the issue.<br /><br />As the producers of browsers and web tools comply with web standards such issues will soon be a thing of the past.</p>

    <p>
    <em>posted by Ally Noormohamed @ <a href="http://www.anom.ca/2006/10/evolution-of-website-design.html" title="permanent link">Saturday, October 07, 2006</a></em>



    <a class="comment-link" href="http://www.blogger.com/comment.g?blogID=35673730&amp;postID=116026925730425847"location.href=http://www.blogger.com/comment.g?blogID=35673730&amp;postID=116026925730425847;>1 comments</a>



    <span class="item-control admin-308257441 pid-1636872894"><a style="border:none;" href="http://www.blogger.com/post-edit.g?blogID=35673730&amp;postID=116026925730425847&amp;quickEdit=true" title="Edit Post"><span class="quick-edit-icon">&nbsp;</span></a></span>
    </p>
    <div id="side_content"></div>
    </div> <!-- content end -->



    <div id="footer"></div>

    </div> <!-- container end -->
    </body>
    </html>

    and here is the CSS:

    /* HTML SELECTORS */
    body
    {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    font-family: "Trebuchet MS" "Arial" "Helvetica";
    font-size: 10pt;
    color: #000;
    background-color: #000000;
    }

    h1
    {
    font-family: "Verdana" "Arial" "Helvetica";
    font-size: 14pt;
    color: #124859;
    font-weight: normal;
    }

    h2
    {
    font-family: "Verdana" "Arial" "Helvetica";
    font-size: 13pt;
    color: #174C68;
    font-weight: normal;
    }

    a:link, a:visited
    {
    font-family: "Trebuchet MS" "Arial" "Helvetica";
    font-size: 10pt;
    color: #003300;
    }

    a:hover
    {
    font-family: "Trebuchet MS" "Arial" "Helvetica";
    font-size: 10pt;
    color: #124859;
    text-decoration: none;
    }

    /* CLASSES */
    .spot_light
    {
    background-color: #F2F5EB;
    }

    input.btn
    {
    width: 100px;
    color: #174C68;
    font-family: "Trebuchet MS" "Arial" "Helvetica";
    font-size: 10pt;
    font-weight: bold;
    background-color: #F2F5EB;
    border: 1px solid #003300;
    text-transform: uppercase;
    }

    .search
    {
    padding: 22px 0 0 174px;
    }

    /* ID'S */


    /* BIG container, all content - WHITE */
    #container
    {
    margin: auto;
    width: 1000px;
    border: 1px solid #394610;
    background-color: #FFF;
    }


    /*BANNER*/
    #gears_image
    {
    height: 276px;
    background-color: #ff1800;
    background-image: url("");
    background-repeat: no-repeat;
    }

    #nav
    {
    height: 55px;
    background-color: #666;
    background-image: url("");
    background-repeat: no-repeat;

    }






    /*BLOG*/
    #content
    {
    margin: 0 0px 0 0px; /* top right bottom left*/
    width: 600px;

    }

    #side_content
    {
    background-color: Fuchsia;
    width: 400px;
    }

    #content h1
    {
    margin-top: 0;
    }

    #content h2
    {
    margin-top: 0;
    }

    #footer
    {
    clear: both;
    height: 45px;
    background-color: #666;
    background-image: url("");
    background-repeat: no-repeat;
    }



    sorry it got so jumbled :S

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Yes, that's quite the mess there. When you get it working you should go through and clean it up.

    Code:
     #side_content
    {
    	background-color: Fuchsia;
    	width: 400px;
    }
    Is not enough info to place your right column. Should be more like this:
    Code:
     
    #wrapper {
    	padding: 0px;
    	width: 1000px;
    	margin: 0px auto;
    }
    #left {
    	background-color: #00FF00;
    	margin: 0px;
    	padding: 0px;
    	float: left;
    	width: 600px;
    }
    #right {
    	background-color: #0000FF;
    	margin-left: 400px;
    }
    You will need to take into account any margin/padding you add to your column divs.

    Have a look at these examples:
    example1
    example2
    example3
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •