Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
centering a page with CSS
Name: richeleau Date: February 24, 2004 at 06:34:15 Pacific OS: Win ME CPU/Ram: Duron 800MHz/128MB
Comment:
Hi,
can you center a webpage in CSS much in the same way as you can using tables?
Name: Geiri Date: February 24, 2004 at 06:54:40 Pacific
Reply:
I think you have to center in css by using margins ? left-margin 25% right-margin 25%
somthing like that
Maby some one knows any beter
0
Response Number 2
Name: anonproxy Date: February 24, 2004 at 11:30:24 Pacific
Reply:
For block-level elements, like div tags, use margins. You can also use presized block elements which fill space on either side and position your content in an element between them (not as clean a method). For inline elements, like text, use "text-align:center".
Summary: hey, i've done kind of a lot with CSS but i've never come across this, so i was wondering if there was a way that you could horizontally align something (like the information within a table data cell)...
Summary: i downloaded nvu , looks like a really good free editor, and interesting to someone not to much familiar with this stuff, ..i just moved all a little to the right in the design view, its not the same ...
Summary: after looking at cerj's suggestion, I agree it's a quite good method... if someone give me a page protected with that method then I'll go confused 0_0 ^o^ are you in Asia? do you watch Animax Asia? Pl...