I am working on my site in Firefox 3.0.9 (and a bit newer with CSS than probably many of you here) and it looks fair so far. However, I have a floating horizontal nav bar at the top that looks like is stepping down. Here is what I attempted so far:
1) I have adjusted the margins, zeroed the padding and changed the width of the background image - all to no effect.
2) I tried to create a IE7 folder and point the browser their with a different stylesheet - no effect.
3) I tried to use IE7.js to solve the issue - no effect.
IE is driving me batty! Any thoughts? Here is my CSS & HTML (no laughing ;-) )
Also, here is the link: http://www.core4innovative.com (ignore the fonts - they are not rendering properly according to my stylesheet)
Thanks!!!
/*---my css---*/
#body { margin: 0px 0px 20px 0px; text-align: center; background: #450000 url(images/greenstrip.jpg) repeat-x right top; }
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\">
<head> <title>Core 4 Innovative: Website Solutions For Your Small Business</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> <meta name=\"keywords\" content=\" core 4,web,webpage developer,design,web designer, freelance,low cost\" /> <meta name=\"robots\" content=\"index,follow\" />
<div id=\"textpad\"> <ul> <li class=\"promise\"><a href=\"#\">Affordable Web Hosting Starting at $9.99 per month!<a></li> </ul>
<div id=\"box\"> <p><span class=\"name\">Core 4 Innovative</span> puts your online success within reach. Using our affordable website solutions, unique development process and standardized methods for design you can be sure to recieve a customized product that adds value to your business!</p> </div>
<div id=\"lowerbox\"> <p><span class=\"name\">We Serve Every Major Industry:</span></br> Restuarants • Real Estate • Insurance • Entertainment • Apparel • Automotive • Energy • Professional Services</p> </div>
<div id=\"featured\"> <p><span id=\"fet\"><a href=\"http://www.core4innovative.com/portfolio/portfolio.html\" alt=\"our featured client\">Our Featured Client</a></span></p> </div>
<div id=\"customize\"> <p>Customize Your website</p> </div>
this is most likely happening because your nav area isn't wide enough. try adjusting it by a pixel or two. The reason the contact us is stepping down in i.e is because for I.E, it won't fit where you told it to go.
I am working on my site in Firefox 3.0.9 (and a bit newer with CSS than probably many of you here) and it looks fair so far. However, I have a floating horizontal nav bar at the top that looks like is stepping down. Here is what I attempted so far:
1) I have adjusted the margins, zeroed the padding and changed the width of the background image - all to no effect.
2) I tried to create a IE7 folder and point the browser their with a different stylesheet - no effect.
3) I tried to use IE7.js to solve the issue - no effect.
IE is driving me batty! Any thoughts? Here is my CSS & HTML (no laughing ;-) )
Also, here is the link: http://www.core4innovative.com (ignore the fonts - they are not rendering properly according to my stylesheet)
Thanks!!!
You could use this:
Same with padding:
Inefficient:
Efficient:
Or if you want to give a 5px padding on the right and a 1px padding everywhere else you would do this.
You can also do the same with margin, just remember it goes in a clockwise pattern (top, right, bottom, left).
Have fun.
Meshach