I am using this code to add an ad beside my logo: <div style="float: right;">AD CODE HERE</div> Code (markup): But, it is way too far to the right, and it isn't centered enough. How would I fix it? Some reccomended margin-s or padding-s , but I don't know what to do Thanks, Peter (Site is www.webgamesnetwork.com)
I would use margin-right to give the logo the right position <div style="float: right; margin-right:100px;">AD CODE HERE</div> Code (markup):
Thanks Now, how would I move it down a little? See this screenshot http://i38.tinypic.com/301myah.jpg
I would suggest giving the DIV tag a class or id name, then adding the CSS to an external style sheet so you can position it where you want it. For example: HTML: <div id="AD">AD CODE HERE</div> Code (markup): CSS: #AD { float:right; padding: 5px 5px 5px 5px; } Code (markup): The padding represents in order TOP RIGHT BOTTOM LEFT. Change these to position the ad where you want it. And just use 0 for no value, NOT 0px.
nearly the same just add a margin-top:20px Code (markup): you need to check the pixels I just filled in a number