Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

css problems with IE

  • 20-12-2010 04:20PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 1,829 ✭✭✭lil_lisa


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


Advertisement