- Impact
- 0
I'm new to HTML and CSS...I'm trying to center content on the page so that it will remain centered even when the window is resized...I've tried using margin: auto but that isn't working...
I'm using Firefox, not IE so it's not the browser...
the code runs something like this...
HTML....
<div id="centeredContent">blahblahblah</div>
CSS....
#centeredContent {position:fixed; top: 30px; width: 300px; margin: auto;}
I'm using Firefox, not IE so it's not the browser...
the code runs something like this...
HTML....
<div id="centeredContent">blahblahblah</div>
CSS....
#centeredContent {position:fixed; top: 30px; width: 300px; margin: auto;}




