That doesn't center it.Originally posted by: LoKe
<div style="width:400px; height:400px; text-align:center;"> </div>
Try that?
Originally posted by: FeuerFrei
That doesn't center it.Originally posted by: LoKe
<div style="width:400px; height:400px; text-align:center;"> </div>
Try that?
Use <div style="text-align:center"><div style="width:400px; height:400px; "> </div></div>
Originally posted by: screw3d
Try this
Originally posted by: Davegod75
Originally posted by: FeuerFrei
That doesn't center it.Originally posted by: LoKe
<div style="width:400px; height:400px; text-align:center;"> </div>
Try that?
Use <div style="text-align:center"><div style="width:400px; height:400px; "> </div></div>
this doesn't work either...the box stays in the upper left of the screen.
Originally posted by: xtknight
I don't think you're going to be able to redesign your website's layout without tons of modifications to the css either if you have positioning code in there.
Originally posted by: Sunday Ironfoot
Originally posted by: xtknight
I don't think you're going to be able to redesign your website's layout without tons of modifications to the css either if you have positioning code in there.
But the point is those modifications only need to be made in ONE place, the 'external' CSS stylesheet, as opposed to hundreds of HTML documents.
Originally posted by: xtknight
Originally posted by: Sunday Ironfoot
Originally posted by: xtknight
I don't think you're going to be able to redesign your website's layout without tons of modifications to the css either if you have positioning code in there.
But the point is those modifications only need to be made in ONE place, the 'external' CSS stylesheet, as opposed to hundreds of HTML documents.
Ah, yes, that's true. But you can do the same thing with HTML (use server-side scripts).
Agreed. I designed with tables for years but switched to layouts using CSS about a year ago. Wouldn't think of going back to tables. It's also kind of cool turning CSS off in the browser for that old-school (before tables took over) look.Originally posted by: Alienwho
css ftw. Once you figure it out you can never go back to tables...except for tabular data.
Originally posted by: Alienwho
css ftw. Once you figure it out you can never go back to tables...except for tabular data.