capella07
08-10-2008, 09:32 AM
I'm trying to put together a set of navigation tabs using divs & css.
I'm doing this off an example at: http://www.webcredible.co.uk/user-friendly-resources/css/css-round-corners.shtml.
The html for the page with the tabs looks like this:
<div id="navigation"><a href="#">Home</a></div>
And the css (currently in a style tag on the page with the tabs) looks like this:
#navigation a
{
color: #000;
background: #ffa20c url(images/lefttabcorner.gif) left top no-repeat;
text-decoration: none
}
The image, however won't show up when referencing it in the css. My site's file structure is set up like:
(root folder)
home.html
images(folder)
lefttabcorner.gif
In the css I've also tried "../images/lefttabcorner.gif" and "/images/lefttabcorner.gif" but none of them will result in showing the image next to the div.
I tried just referencing the image to make sure I could access it at all with: <img src="images/lefttabcorner.gif" /> and that showed the image just fine.
Any help/suggestions will be greatly appreciated!
Thanks in advance.
I'm doing this off an example at: http://www.webcredible.co.uk/user-friendly-resources/css/css-round-corners.shtml.
The html for the page with the tabs looks like this:
<div id="navigation"><a href="#">Home</a></div>
And the css (currently in a style tag on the page with the tabs) looks like this:
#navigation a
{
color: #000;
background: #ffa20c url(images/lefttabcorner.gif) left top no-repeat;
text-decoration: none
}
The image, however won't show up when referencing it in the css. My site's file structure is set up like:
(root folder)
home.html
images(folder)
lefttabcorner.gif
In the css I've also tried "../images/lefttabcorner.gif" and "/images/lefttabcorner.gif" but none of them will result in showing the image next to the div.
I tried just referencing the image to make sure I could access it at all with: <img src="images/lefttabcorner.gif" /> and that showed the image just fine.
Any help/suggestions will be greatly appreciated!
Thanks in advance.