Reply
CSS BG Around Content
Old 10-04-2007, 08:10 PM CSS BG Around Content
Whytey's Avatar
Experienced Talker

Posts: 32
Location: United Kingdom
I am trying to put a BG Image around the Content area without overlapping the Nav or Header -

I've 4 IDS:
Container
Banner
Nav
Content

[Temp Host http://whytey.ihostq.com/impulse/]
Code:
        #container {
            width: 760px;
            \width: 760px;
            w\idth: 760px;
            margin: 0px;
            margin-left: 23%;
            margin-right: auto;
        }


        body {
            margin-top: 10px;
            padding: 0;
            background: url(images/side_bg.gif) top left repeat-x;
            font-family:Arial, Helvetica, sans-serif;
            color: black;
            height: 135px;
        }

        #banner {
            padding: 0;
            background-image:url(images/impluse_logo.jpg);
            width: 760px;
            height: 160px;
        }
        
        #nav {
            padding: 0;
            background-image:url(images/nav5.gif);
            width: 442px;
            height: 32px;
            margin-top: 1.3%;
            margin-left: 23%
        }

        #content {
            padding-top: 25px;
            padding-bottom: 4px;
            padding-left: 7%;
            background-repeat: repeat-x;
            margin-left: 10%
            width: 85%
        }
        
            
        p, pre {
            letter-spacing: 0.2px;
            line-height: 16px;
            font-size: 12px;
        }
    
        h1 {
            letter-spacing: 1.1px;
        }

It should look something like this



Code:
<div id="container">
      <div id="banner"></div>
       <div id="nav" ></div>
<div id="content">
  <h1 class="text">First Heading</h1>
  <p class="text"></p>
  <p class="text"></p>
  <p class="text"></p>
  <h1 class="text">Second Heading</h1>
  <p class="text"> </p>
<p class="text"> </p>
  </div>
</div>
</div>
What would be the best way to do this?

Thanks
Whytey

Last edited by Whytey : 10-04-2007 at 08:29 PM.
Whytey is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Reply     « Reply to CSS BG Around Content
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10419 seconds with 12 queries