Jump to content

mrhello

New Members
  • Posts

    2
  • Joined

  • Last visited

mrhello's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a nav menu using UL, LI and images. I have the inactive and the active working fine, but I just can't get the current working. As the link text is actually in the image itself, I have a specific class name for each image/link. /* inactive state */ #main_nav li a.home{ background:url(home_img.png); } #main_nav li a.about{ background:url(about_img.png); } /* hover state */ #main_nav li:hover a.home{ background:url(home_hover.png); } #main_nav li:hover a.about{ background:url(about_hover.png); } What I want is the current class to be assigned to the same as the hover. This is normally easy when each image is the same, but as all my images have the link text in them, I need to assign the "current" class to each specific class. eg class="home" OR class="home current" I have that working fine in the PHP, I just cannot get the CSS tied to the "current" with each specific class.
  2. Hi all! I am a newbie with CSS and actually not very asvvy. I got this new full css template and would like to be able to change the background color on which the website "sits". Originally the background color was within the html coding of every page like this: (I have deleted this, because I thought it is otherwise over writing the stylesheet command for the color?) Now I would like to put the background color into the style sheet, so I can change the color site-wide, if required. The code in the style sheet is: #container { width: 950px; margin-right: auto; margin-left: auto; background-color: white; border: thin; border-color: #a9a9a9; border-style: solid; } #body{ margin: 0px; padding: 0px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; color: black; } What needs to be altered in the style sheet and what would I need to put onto the page source code?? Thanks in advance for your help and advice, new-to-css
×
×
  • Create New...