![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to get a 1px border around the content section of this page: http://www.clearpointsystems.com As you will see, I have a header/nav bar (looks correct), but the border around the content is not centered and does not resize properly as the browser window is resized. The goal is a 1px border around the content (div id="page") with about 30px (or 2%) margin all around and the border/content should resize as the browser window is resized. What I have now is something of a hack: #page { position:absolute; top:80px; width:80%; height:50%; font-family:Arial, Helvetica, sans-serif; border: 1px solid #333333; text-align:left; margin-top:0 auto 0 auto; padding:30px 30px 30px 30px; } How do I get a centered div with an evenly-spaced 1px border all around? Thanks in advance. |
#3
| |||
| |||
|
|
I'm trying to get a 1px border around the content section of this page: http://www.clearpointsystems.com How do I get a centered div with an evenly-spaced 1px border all around? |
#4
| |||
| |||
|
|
http://www.clearpointsystems.com How do I get a centered div with an evenly-spaced 1px border all around? Replace all of your stylesheet with this (don't use abs pos): |
#5
| |||
| |||
|
|
http://www.clearpointsystems.com How do I get a centered div with an evenly-spaced 1px border all around? PS. You can see the changes online - I am working on that sidebar at the moment... |
#6
| |||
| |||
|
|
May I invite you to see this page, about fonts and sizing? http://k75s.home.att.net/fontsize.html |
#7
| |||
| |||
|
|
As for Veranda, I have no special attachment to it, though it is readable. Trebuchet MS might be alternative. What do you suggest? |
#8
| |||
| |||
|
|
sans-serif |
#9
| |||||
| |||||
|
|
This was my first attempt at using a table navbar. I like the idea because there are no images - keeps page size down. |
|
But I thought I needed to use absolute positioning to get that header right. |
|
What's wrong with absolute positioning? |
|
I've had pretty consistent results in FF and IE. |
|
PS. You can see the changes online - I am working on that sidebar at the moment... |
#10
| |||
| |||
|
|
May I invite you to see this page, about fonts and sizing? http://k75s.home.att.net/fontsize.html Thanks for the tip. I'm using 'font-size:small' (and medium, large) which seems to get me by in most cases. |
|
As for Veranda, I have no special attachment to it, though it is readable. Trebuchet MS might be alternative. What do you suggest? |
![]() |
| Thread Tools | |
| Display Modes | |
| |