Jump to content

CSS Block Help


Erindesign

Recommended Posts

I am using a cell block as a link and need a little help. I have made a code which works fine for what it is. I want a left indent though (2 pixel indent), so another words, the contents should show 2px away from the left border. I tried margin-left but it did nothing. I tried padding-left which understood the block as one and moved the whole thing instead of the text.heres my code:

.menuitem a:link{	width:100%;	background-color: #C9DFA4;	color: #3B5E1B;	font-size: 11;	font-family: Verdana, Arial, Helvetica, sans-serif;	display: block;}.menuitem a:visited{	width:100%;	background-color: #C9DFA4;	color: #3B5E1B;	font-size: 11;	font-family: Verdana, Arial, Helvetica, sans-serif;	display: block;}.menuitem a:hover{	width:100%;	background-color: #A1C56E;	color: #3B5E1B;	font-size: 11;	font-family: Verdana, Arial, Helvetica, sans-serif;	display:block;}.menuitem a:active{	width:100%;	background-color: #C9DFA4;	color: #3B5E1B;	font-size: 11;	font-family: Verdana, Arial, Helvetica, sans-serif;	display: block;	}

any help?

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
×
×
  • Create New...