View Full Version : What am I missing?????
svoltmer
05-28-2003, 06:12 PM
I am missing somthing with my CSS to position the words "HOME" over the floated image of a button on my page. Can somone please tell me the property that will position this text so it is centered on the big rounded corner button at the top of my navigation. Thanks!
Here is the page http://www.crossroaddesigns.com
Astrolegoboy
05-28-2003, 08:53 PM
I took a look at your leftnav.html page. From what I can see the the height in the float class can be decreased & the topmargin in the body tag can be increased. I adjusted the original values: div.float {height: 35px;} and <body topmargin:"20px"> in the code listed below and it seemed to move the home text-over down. I had to adjust both to keep the other text-over buttons in line with the graphics to the left (arrow bullets).
Looks like this fixed the problem (little hard to tell since I didn't have access to all the background graphics).
<style type="text/css">
div.float {display:block;position:relative;padding:none;font-size:9pt; float:left;text-decoration:none; border:none; height: 25px;
</head>
<body bgcolor="FF0000" leftmargin="0" topmargin="35px"
BTW: I'm currently tweaking a design of my own so I've been spending lots of time deep into CSS coding/parameters.
Hope this helps.
svoltmer
05-30-2003, 09:04 AM
Thanks for the ideas. In the end I changed "padding" to 4px and that in itself centered "home" on the button.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.