By DNP on
First of all I would like to thank Steven for such a beautiful theme.
However, I would like to change the nav bar primary links (FriendsElectric) at the top so that the tab background is visible and not only when we do a hover.
I've had a look at the "Basic instructions for adding graphic tabs to your Drupal theme", but can't figure it out with that.
Also has someone come up with a solution to the safari issue ?
Hope someone can help !
regards,
DNP
Comments
FriendsElectric
in the style.css for the theme, look for:
#top-nav ul li a .lw1 {
display: block;
position: relative;
_width: 1px;
background: url(nav-right.png) no-repeat 100% -100px;
}
#top-nav ul li a .lw2 {
padding: 2px 5px;
display: block;
position: relative;
_width: 1px;
cursor: pointer;
background: url(nav-left.png) no-repeat 0% -100px;
}
change it to:
#top-nav ul li a .lw1 {
display: block;
position: relative;
_width: 1px;
background: url(nav-right.png) no-repeat 100% 0px;
}
#top-nav ul li a .lw2 {
padding: 2px 5px;
display: block;
position: relative;
_width: 1px;
cursor: pointer;
background: url(nav-left.png) no-repeat 0% 0px;
}
That should do the trick...
What safari issue?
What safari issue?
Thanks...
Great that did the trick.. I'd been looking around that area but don't have enough CSS knowledge yet..
And here is the Safari issue before your fix which I'd read here somewhere while searching for an answer on my issue.
It seems to be somewhat fixed with your suggestion, but still has a gap, where as in Firefox etc there is not this space.
After your fix it gives this, so do you know what is causing this space only in Safari?
Kind regards,
dnp
Digital Nature Pictures
If you are talking about the chopped corners
That is an issue with how safari renders colors. For some reason unknown to me, safari shows colors a bit different then say firefox and IE.
You might be able to work around it by changing the images to have transparent backgrounds and then create the rounded corners by deleting pixels to the transparent backround in the corners.
Thanks..
DiGriz,
Thanks for your help, it greatly appreciated.
I'm almost happy now with the appearance in Safari, except for the spacing is different... see here
In the CSS file it seems the "top" px dimensions (see below) don't get counted the same in Safari.
#top-nav ul#primary {
position: absolute;
left: 11px;
top: 91px;
right: 250px;
}
Is there a workaround for this, other than creating seperate css files for each browser? Or am I looking in the wrong direction ?
regards,
DNP
Digital Nature Pictures
better?
I find that this works better, with the *major* caveat that I haven't tested it in IE yet (any of the site, ever) as I don't have a Windows machine handy at the moment:
If this is silly please let me know!
this solution works well..
this solution works well.. thank you