Jump to content

horizontal menu and rest of my links


Teeger671
 Share

Recommended Posts

Ok making my forum newsletter and been trying to learn html and css and I have a problem. I put in a CSS horizontal menu and I am stuggling with every other link in my newsletter having the same background. So I guess I am asking is there a way to do a similar thing in html or a way to keep this from effecting the whole newsletter instead of just the menu bar?

<STYLE type=text/css>UL {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 100%; PADDING-TOP: 0px; LIST-STYLE-TYPE: none}A {BORDER-RIGHT: white 1px solid; PADDING-RIGHT: 0.6em; PADDING-LEFT: 0.6em; FLOAT: left; PADDING-BOTTOM: 0.2em; WIDTH: 6em; COLOR: white; PADDING-TOP: 0.2em; BACKGROUND-COLOR: #330099; TEXT-DECORATION: none}A:hover {BACKGROUND-COLOR: #330099}LI {DISPLAY: inline}</STYLE><UL><LI><A href="http://www.freewebs.com/teeger671/index.htm">Home</A> <LI><A href="http://icandme.9.forumer.com/index.php?">Forum</A> <LI><A href="http://icandme.9.forumer.com/index.php?c=17">Work at Home help</A> <LI><A> href="http://pub30.bravenet.com/chat/show.php?usernum=2541657076&cpv=2">Chat room</A> </LI></UL>

Link to comment
Share on other sites

<ul><li><a href="blah" class="menu">Menu Link text</a></li</ul><a href="blah">Other Link text</a>

a.menu { style for the menu here }a { other links get styles from here }

Link to comment
Share on other sites

a.menu { style for the menu here }This is a CSS class [classname: menu], so when you need that style in a particular <a> then you need to use that class <a class="classname"..... And other part is styling elementa { other links get styles from here }this is styling the tag itself, so when you use that tag anywhere in the page the style will apply.This might help a bit..http://www.tizag.com/cssT/class.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...