php? Posted September 9, 2007 Share Posted September 9, 2007 Hi, i was wondering how i would center this into the center of the page :-\ <div class="narrowscroll-bg"> <div class="narrowscroll-bgimg"> thanks Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 9, 2007 Share Posted September 9, 2007 This is a CSS/HTML question. Use margin with 0 auto; Quote Link to comment Share on other sites More sharing options...
Fadion Posted September 9, 2007 Share Posted September 9, 2007 Yep "margin: auto" will do it. Quote Link to comment Share on other sites More sharing options...
php? Posted September 9, 2007 Author Share Posted September 9, 2007 Where do i add that? Quote Link to comment Share on other sites More sharing options...
php? Posted September 9, 2007 Author Share Posted September 9, 2007 Where would i add that... heres the whole thing <img class="narrowscroll-top" src="pics/scroll457_top.gif" alt="" width="466" height="50"> <div class="margin: auto"> <div class="margin: auto"> <div class="narrowscroll-content"> <dl class="news-scroll"> Quote Link to comment Share on other sites More sharing options...
moberemk Posted September 9, 2007 Share Posted September 9, 2007 That's wrong though-just add to your narrowscroll style definition the margin: auto declaration. Quote Link to comment Share on other sites More sharing options...
php? Posted September 9, 2007 Author Share Posted September 9, 2007 cant u add it in and repaste plz... Quote Link to comment Share on other sites More sharing options...
php? Posted September 10, 2007 Author Share Posted September 10, 2007 Like this? <img class="narrowscroll-top" src="pics/scroll457_top.gif" alt="" width="466" height="50"> <div class="narrowscroll-bg"> <div class="narrowscroll-bgimg"> <div class="narrowscroll-content"> <dl class="news scroll"> Quote Link to comment Share on other sites More sharing options...
php? Posted September 10, 2007 Author Share Posted September 10, 2007 i mean... this <img class="narrowscroll-top" src="pics/scroll457_top.gif" alt="" width="466" height="50"> <div class="margin: auto narrowscroll-bg"> <div class="margin: auto narrowscroll-bgimg"> <div class="margin: auto narrowscroll-content"> <dl class="news-scroll"> Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted September 10, 2007 Share Posted September 10, 2007 maybe you shouldn't be coding html/css if you don't have the slightest understanding of html. Read a book and give it time. Quote Link to comment Share on other sites More sharing options...
php? Posted September 10, 2007 Author Share Posted September 10, 2007 Or i could learn by people telling me? Instead of spamming my thread with useless comments, and they can also f off Quote Link to comment Share on other sites More sharing options...
moberemk Posted September 10, 2007 Share Posted September 10, 2007 No, the first one with only the class names was right. You have to define the class, and then in your CSS you have the margin: auto; definition. Have you ever used classes and styles before? If not, then you probably should go get a book from the library, or go to http://www.w3schools.org/. Remember, patience is a virtue. Quote Link to comment Share on other sites More sharing options...
deadimp Posted September 10, 2007 Share Posted September 10, 2007 TheFilmGod's advice wasn't spam, and try to be somewhat grateful. Looking at your code, it looks like you need to sit down with a few tutorials, or just go look at some site's HTML/CSS source. My suggestion would be, if you want to play around with CSS, get some development tools that let you actively edit your page, something like Firebug for Firefox. 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.