471,605 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

I need a box......

Death Slaught
1,137 1GB
I need a "box" so to speak thats in the center of the page that holds the contents of that page in it ( the home etc. buttons and what the page says) also i need it to hold the <hr> tag inside of it. without going outside the "box".

I know it may not be possible in HTML but if it is that would be prefered over CSS.

Thanks, Death
Sep 4 '07 #1
1 1127
You could just create a <div> element to hold the contents of your page in. Give it a CSS property "margin: 0 auto" to center it on the page and "width: ***px" to give it a fixed width. Any other HTML tags can be placed within the DIV.

If you don't like using CSS then just positioning a table in the page would do almost the same, but the W3C would prefer you to use CSS for layout instead of tables.
Sep 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Sofia | last post: by
6 posts views Thread by Robert Maas, see http://tinyurl.com/uh3t | last post: by
reply views Thread by Gregory Nans | last post: by
8 posts views Thread by JustSomeGuy | last post: by
2 posts views Thread by Michael R. Pierotti | last post: by
8 posts views Thread by skumar434 | last post: by
reply views Thread by U S Contractors Offering Service A Non-profit | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.