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 5 of 5
  1. #1
    Regular Coder boogily's Avatar
    Join Date
    Jul 2009
    Posts
    275
    Thanks
    18
    Thanked 4 Times in 4 Posts

    My eyes must be bad or brain fried. IE sucks.

    I am creating a 2 column layout that breaks in IE8 and lower. The left side is a fixed width, the right side liquid.

    I'm basically floating something to the left, and want the rest of the content to not go underneath it. This was simply done by adding margin-left.

    Its real basic (HTML5 elements -- which get generated in IE through JS -- works). Here is the culprit source:
    Code:
    <header>
    <hgroup class="left"><img src="images/header.png" width="641" height="393" class="headerimg"></hgroup>
    <hgroup class="right">
    <h1>This is what we're about</h1>
    <p>Our Staff is what can turn a project into a "knockout" project. Whether it is in house or our local business partners or collaborators, we can tackle your job with ease.</p>
    <p>Plus, we love bacon.</p>
    </hgroup>
    Here is the corresponding css:
    Code:
    header {
    	width:80%;
    	margin:10px auto 0;
    }
    hgroup.left {
        display: inline;
        float: left;
    }
    hgroup.right {
       margin-left:650px;
    }
    So, what am I missing? It works properly in all browsers except IE8 and below. I've been staring at this screen for 16+ and probably am missing something so simple. Thanks for any help. Here is a URL. (it should line up with the monitor on the left, text on the right)

    http://www.happydogwebproductions.com/html5/int/
    Joomla Development Company and MN SEO
    "Joomla development from design to SEO"

  • #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
    Hello Boogily,
    Is that all the CSS? I don't see .left getting a width from anything. Earlier versions of IE are going to want a width.

    Have a look at this example of a 2-column layout.
    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

  • #3
    Regular Coder boogily's Avatar
    Join Date
    Jul 2009
    Posts
    275
    Thanks
    18
    Thanked 4 Times in 4 Posts
    It's more of a template, so I don't want to assign a width, since the width may vary from page to page.
    Joomla Development Company and MN SEO
    "Joomla development from design to SEO"

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by boogily View Post
    It's more of a template, so I don't want to assign a width, since the width may vary from page to page.
    But you do. You specificly leave 650px room for it with your left margin on .right.
    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

  • #5
    Regular Coder boogily's Avatar
    Join Date
    Jul 2009
    Posts
    275
    Thanks
    18
    Thanked 4 Times in 4 Posts
    Haha! Thats what being in front of the computer for so long will do. Actually my error was not setting the hgroup as display block. Thanks for the help though
    Joomla Development Company and MN SEO
    "Joomla development from design to SEO"


  •  

    Posting Permissions

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