Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

css problems with IE

Options
  • 20-12-2010 4:20pm
    #1
    Registered Users Posts: 6,810 ✭✭✭


    hi guys a couple of simple? css things here :(

    this is how the web page renders in IE incorrectly

    2lc2oav.png

    this is it in Dreamweaver where it looks to be correct

    25ouedk.png

    basically i want the text to the right of the photo, i have a class set up called .herbert
    .herbert{
    	float:left;
    	padding-left:10px;
    	padding-right:10px;
    	padding-bottom:10px;
    }
    

    and i want the links at the top to be set on the right hand side, surely thats just a float:right; ?
    .rightlinks{
    	font-size:12px;
    	float:right;
    	
    }
    

    any help appreciated!


Comments

  • Registered Users Posts: 527 ✭✭✭Sean^DCT4


    I think you need the following code to fix this in IE. Not 100% but I think it's that.
    <div style="clear:both;"></div>
    

    or you could stick an align=left on the <img>


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Which version of IE? You might need to add a "display:inline" to the "float:left" on the image


  • Registered Users Posts: 171 ✭✭conorcan2


    .herbert{
    float:left;
    1 clear:none;
    2 display:inline;
    padding-left:10px;
    padding-right:10px;
    padding-bottom:10px;
    }

    Try a few combinations of rules 1 and 2 above.


  • Registered Users Posts: 1,829 ✭✭✭lil_lisa


    You shouldn't have to float:right at all for the text, it should sit on its own.


Advertisement