Notices

Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

CSS help!

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 07-09-06, 08:38 PM Thread Starter   #1
Frodo Baggins
Member



Join Date: Aug 2001
Location: City of Dreaming Spires

 
CSS help!


Here is a very simple problem:

I need a large container, width: 900 px, that will envelope my blog. Inside this large container is a header, floated at the top. Below the header is a smaller container.

Index file looks like this:

Code:
<div id = "bigcontainer">
    // Generate the header
   <div id = "smallercontainer">
      //Generate the post
   </div>
</div>
The style sheet has this:
Code:
#largecontainer
{
width:900px;
margin:0 auto;
padding:0px 3px;
border: thick solid #FF0000;
}
#smallercontainer {
position:absolute;
top: 194px;
overflow: hidden;
display:inline;
}
Here is the simple problem. When the above is generated, I get a big red border, but ONLY around the header file. When smaller container is not positioned absolutely (the line is removed), then the red border surrounds everything. Why is this happening? Why does my big container not contain the little container?

I should mention that this uses the wordpress blog software. But this is not a wordpress problem.

Last edited by Frodo Baggins; 07-09-06 at 09:24 PM.
Frodo Baggins is offline   QUOTE Thanks
Old 07-09-06, 10:01 PM   #2
seadave77

 
seadave77's Avatar 

Join Date: Jul 2002
Location: Newnan, GA

 
Maybe because the index is calling "bigcontainer" and the CSS is calling "largecontainer".
seadave77 is offline   QUOTE Thanks
Old 07-09-06, 11:14 PM Thread Starter   #3
Frodo Baggins
Member



Join Date: Aug 2001
Location: City of Dreaming Spires

 
Quote:
Originally Posted by seadave77
Maybe because the index is calling "bigcontainer" and the CSS is calling "largecontainer".

Surprisingly, no I just cleaned up the code and renamed stuff to make it easier to understand -- that was a mistake.

But fortunately, I think I solved the problem [2 minutes ago]. Dunno how, but who cares, if it works, it works.

So consider this thread closed.
Frodo Baggins is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 03:43 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?