jbingman Posted November 7, 2007 Share Posted November 7, 2007 Is there anyway to float divs centered? Like keep the whole page centered or do you have to have a fixed spot? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 7, 2007 Share Posted November 7, 2007 do you wanted them floated or centered? its not really clear what you are after.. you can keep a whole page centered by giving the body a width (% or absolute) and margin: 0 auto; Quote Link to comment Share on other sites More sharing options...
jbingman Posted November 8, 2007 Author Share Posted November 8, 2007 Yep, that's what i was looking for. Thank you. Also, i've seen websites with text in the table border kinda like this... -TEXT------------------- | | | | | | | | | | | | |______________________| Is there a way to do that in CSS. Someone told me there was i just cant find it anywhere. Quote Link to comment Share on other sites More sharing options...
Aureole Posted November 8, 2007 Share Posted November 8, 2007 If you want everything centered body { margin:0 auto; } Quote Link to comment Share on other sites More sharing options...
rxbanditboy1112 Posted November 8, 2007 Share Posted November 8, 2007 well if you just want the text in the div centered, but you want it floated then you can float:left; text-align:center; (or right for float) (right left center for text-align) Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 8, 2007 Share Posted November 8, 2007 Yep, that's what i was looking for. Thank you. Also, i've seen websites with text in the table border kinda like this... -TEXT------------------- | | | | | | | | | | | | |______________________| Is there a way to do that in CSS. Someone told me there was i just cant find it anywhere. I suspect what you were seeing there was a <fieldset><legend> in a form... Quote Link to comment Share on other sites More sharing options...
jbingman Posted November 8, 2007 Author Share Posted November 8, 2007 possibly, but it wasnt a form, it was just a normal table. Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted November 9, 2007 Share Posted November 9, 2007 Is there a way to do that in CSS. Someone told me there was i just cant find it anywhere. Negative margins or absolute positioning. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.