CSS and Layout

greggpb

Expert Member
Joined
Apr 22, 2005
Messages
1,818
Reaction score
0
Location
Cape Town
I am building my first CSS website since the frame bases ones I did in the late 90's and need a bit of help

layoutzb.jpg




I have build somthing like this.
The red block is a header, the purple = news, the green = menu, the blue content..

but the content should alway fill if one of the other blocks is absent...
and why sometime will the contect appear under the menu is the menus is shorter..

?
 
Yeah I don't think anyone is going to write the layout for you. Post a link to the site and we can give you tips.

Use div's and some very simple styling - you'll start getting the hang of it.
 
I don't quite understand what you are looking for but I am sure with some php something could be made. I am no php expert though but think it can be done.
 
@Matthew I think he wants some type of code that says if section 1 is not there make section 2 bigger. I don't know of any css that does that but php should be able to help.
 
Ye would be quick with php ... something like :

<?php if ($blocks == 2) : ?>
<div class="grid2">Some Content</div>
<?php else : ?>
<div class="grid1">Some Content</div>
<?php endif; ?>
 
Top
Sign up to the MyBroadband newsletter
X