|
Posted by Jeff on 06/19/06 17:53
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.
"Philip" <NikitaTheSpider@gmail.com> wrote in message
news:NikitaTheSpider-74A56A.11433819062006@news-rdr-01-ce0-1.southeast.rr.com...
> In article <xredncZt4YFbIwvZ4p2dnA@telenor.com>,
> "Jeff" <it_consultant1@hotmail.com.NOSPAM> wrote:
>
>> Hey
>>
>> Here is my html/css code. I got 2 problems with it:
>> A) The <ul> doesn't align It doesn't align to the left, it's placed I
>> guess
>> it's about 20 - 60 pixels to the right for the left margin. But I want
>> this
>> <ul> block to align with the left margin - > i don't want this open space
>> between the left margin and the <ul>
>
> Hi Jeff,
> What purpose does the table serve? How about removing the table from
> around the UL and then setting this style:
> <style>
> ul#navigation { margin-left: 0px; padding-left: 0px; }
> </style>
>
>
>> B) The code in menu css is taken from an example on the internet... In
>> the
>> example it uses these 2 css blocks to change the setting of the link the
>> mouse is hovering over:
>> #navigation a:hover
>> #navigation a:hover
>> But instead of a hovering effect I want to convert this css block to be
>> show
>> the current selected item in the ul block. I mean if u could show me how
>> to
>> embedd this css block in the html code, then I can do the rest... The
>> actual
>> page will be genereated using php, so in php I use a if-test... if
>> selected
>> then do this, if not selected to that....
>
> 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".
>
> Make sense? Did I understand correctly what you want?
>
> --
> Philip
> http://NikitaTheSpider.com/
> Bulk HTML validation, link checking and more
Navigation:
[Reply to this message]
|