Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 column layout

Status
Not open for further replies.

Cullen411

Programmer
Aug 17, 2005
89
GB
I've been looking at this page
with the leftcolumn having a width of 200px and a border of 1 on both the left and right, does that not make the overall width 202px?
and hence should centercontent not have a margin-left of 203px rather than margin-left: 201px;
 
sorry typo - changed 203 for 202


I've been looking at this page
with the leftcolumn having a width of 200px and a border of 1 on both the left and right, does that not make the overall width 202px?
and hence should centercontent not have a margin-left of 202px rather than margin-left: 201px;
 
No, because this is the effect they are after. The center content is positioned over the leftcolumn, more precise, over the border of the left column to make it look as if there is only one set of borders rather than two.
 
Then they would have to write the borders for the other three sides, and it's more code to achieve the same effect. This way the border between them is 1 px, and they didn't need to

border-left: ...
border-right: ...

for each of the sides. Besides if the ceter happened to be shorter than one or both sides on one of the pages, the fact they didn't have borders facing the center section would become very obvious.

[plug=shameless]
[/plug]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top