This is a discussion on "css page layout help" within the Web Page Design section. This forum, and the thread "css page layout help are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
css page layout help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
css page layout help
I have a site designed with css here
The problem I am having is using a background div. I used one here but I don't know how to get it so it changes height when the sidebar & content div's do so they don't go outside the background div like the sidebar has done. How do I fix this? Last edited by debrag; Aug 30th, 2007 at 11:40. Reason: updated links |
|
|
|
#2
|
|||
|
|||
|
Re: css page layout help
links no go
|
|
#3
|
|||
|
|||
|
Re: css page layout help
sorry to many w's links have been updated
|
|
#4
|
|||
|
|||
|
Re: css page layout help
I'm confused ... what's it suppose to look like?
|
|
#5
|
|||
|
|||
|
Re: css page layout help
in the second link i have placed a div behind the content and sidebar div.
This div label 'back' doesn't change it's height so the over div's don't go out side it as the sidebar has done. How do I change this? are these 2 div's not inside the back div? |
|
#6
|
|||
|
|||
|
Re: css page layout help
It's not a div ... it's a span. Why are you using a span?
What is suppose to be the purpose of this span? Do you have an end result you are trying to achieve ... like a mock-up or something? |
|
#7
|
|||
|
|||
|
Re: css page layout help
|
|
#8
|
|||
|
|||
|
Re: css page layout help
ummm. yeah, it's inline... or in the html at least...
anyways, im with you, confused. my bed tim i think!! Last edited by nate2099; Aug 30th, 2007 at 11:55. |
|
#9
|
|||
|
|||
|
Re: css page layout help
Quote:
I set it up as a div I have no clue what a span is |
|
#10
|
|||
|
|||
|
Re: css page layout help
This is the code you have .... way at the bottom of your document.
|
|
#11
|
|||
|
|||
|
Re: css page layout help
|
|
#12
|
|||
|
|||
|
Re: css page layout help
Quote:
Acheive - to not have the black behind the sidebar & content divs, to have it white, trying to place a div behind them but can't get one that expands with the contents to work. |
|
#13
|
|||
|
|||
|
Re: css page layout help
Well yeah ... it's just a 2 column layout
Look at the sticky Resources for how to do css layout up top. There's tons of examples of layouts. Pick one and run with it
Last edited by karinne; Aug 30th, 2007 at 12:17. |
|
#14
|
|||
|
|||
|
Re: css page layout help
I take it 'branding' means header
Last edited by debrag; Aug 30th, 2007 at 12:28. |
|
#15
|
|||
|
|||
|
Re: css page layout help
Quote:
Yes ... branding is a much better word for header ... after all ... that is what you put in there |
|
#16
|
|||
|
|||
|
Re: css page layout help
Below is my code, the red parts are as follows:
'branding' = header 'container' = back 'side' = sidebar 'main' = contents going to www.libbytanner.diva-host.com/index1.php shows no change the side bar is still over the back(container) div. Have I closed the divs correctly?
#back { position:absolute; width:880px; height z-index:0; left: 11px; top: 23px; background-color: #FFFFFF; Last edited by debrag; Aug 30th, 2007 at 12:47. |
|
#17
|
|||
|
|||
|
Re: css page layout help
If you want to use positioning, position: relative; is the one you should be using for this ... not absolute.
z-index here is not needed. So ... if I have this straight, you want the black background around your content. And the content should be white. |
|
#18
|
|||
|
|||
|
Re: css page layout help
www.libbytanner.diva-host.com/index1.php and no I want 'container' to be white which it currently is. Last edited by Daniel; Aug 30th, 2007 at 13:07. Reason: [code] tags added |