FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

How to... (CSS)

 


sonam
I am just start to build one new site. I would like to build this site without tables (as much is possible) but I have few question. My problem is in center. Table is possible to centre and all users in all browsers get table in the center of the screen. Is it possible to make the same with divs. Also, is it possible to make some divs 100% width.

Sonam
mathiaus
Use margin: auto; for centering a div.
Divs can have 100% width, the outer divs etc (inc body) usually need them though.
sonam
Thanks,
I was little bit confused. Now is everything OK.

Sonam
taitj
A good site for css tutorials: http://www.techtuts.com/tutorials/cascading_style_sheets/
carlospro7
Yeah the margin: auto thing works. If you are interested in more css hacks and such, there is this book called CSS Hacks and Filters. It's quite a good and has code that can help you with dealing with different browser. You said your new to CSS, and I'm sure that, if you haven't realized by now, not all browsers support css in the same way
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.