CSS problem

Discussion in 'CSS' started by afcbob, Jul 12, 2009.

  1. #1
    OK i have a problem with apart of my site design.
    The part that is hosting, server, web solution banner everything i try does not work right.

    Please help

    Site
    http://clients.host2design.co.uk/Host2Design/newsite/
    Css
    http://clients.host2design.co.uk/Host2Design/newsite/images/style.css
     
    afcbob, Jul 12, 2009 IP
  2. i.run.shit

    i.run.shit Peon

    Messages:
    61
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It doesn't look like you're properly closing some of your tags first off..
    <div id="services">
    <div id="ourservices"/>
    <div id="ourspacer"/>
    Code (markup):
    I'm pretty sure you're not supposed to close your divs with a / at the end. If you need a blank div just add &nbsp; :
    <div id="services">
    <div id="ourservices">&nbsp;</div>
    <div id="ourspacer">&nbsp;</div>
    Code (markup):
    Then below the "ourspacer" try to add
    <div style="clear:both;">&nbsp;</div>
    Code (markup):
    which will force a space between your "ourspacer" and anything below it. I'm not even sure why you aren using a "ourservices" and "ourspacer" instead of just making it one big div.

    <div id="services">
    <div id="ourservices">
    <div id="ourspacer">&nbsp;
    </div>
    </div>
    <div style="clear:both;">&nbsp;</div>
    <div id="hostingbanner">Hosting Plans</div>
    <div id="serverbanner">VPS/Servers</div>
    <div id="webbanner">Web Solutions</div>
    Code (markup):
    No promises, just suggestions.
     
    i.run.shit, Jul 12, 2009 IP
  3. afcbob

    afcbob Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply

    I tried the clear tag before on the hostingbanner id and ourspacer id. This works fine for firefox but not IE.
     
    afcbob, Jul 13, 2009 IP
  4. afcbob

    afcbob Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's ok i have it sorted now.
     
    afcbob, Jul 13, 2009 IP