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 15:43

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]


Удаленная работа для программистов  •  Как заработать на 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

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