You are here: Re: newbie: need help with this css/html « HTML « IT news, forums, messages
Re: newbie: need help with this css/html

Posted by Philip on 06/19/06 22:26

In article <FoOdnb-zSuPSlQrZ4p2dnA@telenor.com>,
"Jeff" <it_consultant1@hotmail.com.NOSPAM> wrote:
> "Philip" <NikitaTheSpider@gmail.com> wrote in message
> news:NikitaTheSpider-B625F5.14030219062006@news-rdr-01-ce0-1.southeast.rr.com.
> ..
> > In article <-7idnVo2qcfpeQvZ4p2dnA@telenor.com>,
> > "Jeff" <it_consultant1@hotmail.com.NOSPAM> wrote:
> >> "Philip" <NikitaTheSpider@gmail.com> wrote in message
> >> news:NikitaTheSpider-74A56A.11433819062006@news-rdr-01-ce0-1.southeast.rr.c
> >> om.
> >> > So let me get this straight: the UL is a navigation menu, and if the
> >> > user clicks on, say, item #6, she'll be directed to a page with this
> >> > same navigation menu on it but item #6 should look different from the
> >> > others. Is that correct? Why not have a style like so:
> >> > #CurrentlySelectedMenuItem { font-weight: bold; }
> >> >
> >> > Then use PHP to build your UL and give the 6th LI an
> >> > id="CurrentlySelectedMenuItem".
> >>
> >> But I uses 2 css blocks to set the background color of the link, because
> >> the
> >> background has rounded corners. Each css block uses it's own .gif file...
> >> (left-tab.gif and right-tab.gif). I don't think I can set these 2 images
> >> using just 1 css block.
> >
> > Correct me if I'm wrong, but your question is "How do I put rounded
> > corners on an element?"
>
> That is almost correct, in addition to setting the rounded corners
> (represented as 2 .gif files) I also want the background of the element to
> have the same color as the .gif files. take a look at this link:
> http://home.online.no/~au-holme/pub/66202/index.php (this link is a copy of
> what I've done so far, it uses the code I posted in my first post in this
> thread ). At that link you see that when you are hovering the mouse over a
> item ("TEST 2" for example) the backgrund of the element changes color. But
> instead of showing a different color when hovering, I want the selected item
> to have a different background color (needs to set background-color +
> replace those to .gif files with .gif files with a different color)
>
> The select item is this:
> When the user clicks on one of the item the page is directed to the same
> page but with some other GET parameters. In my php code I use $_GET to
> obtain the selected item value and then I use that value to set the
> background color (including using different .gif files) on that specific
> list item... - if for example selected value is 4, then it means that it's
> on list item #4 I have to set a different background color on, compared to
> those other list items....

I think my other message about background-color in this thread tells you
what you need to know.


HTH

--
Philip
http://NikitaTheSpider.com/
Bulk HTML validation, link checking and more

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация