Forums

CSS

This topic is locked

Indent not working

Posted 10 Apr 2007 21:00:17
1
has voted
10 Apr 2007 21:00:17 The Locust posted:
The following HTML/CSS is producing everything except for the 5px indent. Please help!

<td width="157" height="25" class="navBtn">home</td>

**This CSS is being imported from a style sheet***
.navBtn {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: lowercase;
color: #FFFFFF;
text-indent: 5px;
background-image: url(images/navBtn.jpg);
margin: 0px;
padding: 0px;
text-align: left;
vertical-align: middle;
letter-spacing: 5px;
display: block;
}

Replies

Replied 11 Apr 2007 16:48:35
11 Apr 2007 16:48:35 Alan C replied:
It seems to work fine in Firefox - 5px is not a lot on indent I changed it to 5em and the text moved as expected, no background image but that should not matter for test, which browser are you testing with?
Replied 12 Apr 2007 08:33:16
12 Apr 2007 08:33:16 The Locust replied:
IE 7
Replied 13 Apr 2007 01:51:40
13 Apr 2007 01:51:40 Alan C replied:
Hmm, I tried it in IE7 and it seemed to work fine, I uploaded a page first with the 5px indent, then looked at it, then changed the indent to 5em so I could see if the text moved, it did.

That was the only change I made - I left it in place here

www.greatshape.co.uk/csstest.htm

it might be a conflict with some other css
Replied 24 Apr 2007 14:27:57
24 Apr 2007 14:27:57 satheesh Dominic replied:
This CSS is working well in Firefox & IE6....Please increase the value from 5 to 50 or more to see the visible effect.

It is also possible that you might have defined some different class properties for "home" (i.e., "<a>","<table>", etc.) tag..Check themall...

Reply to this topic