Previous Message
Next Message

2 Problems with CSS

Sent by Ben Morrison on 28 November 2003 17:05


On 28/11/03 5:02 pm, [EMAIL-REMOVED]"
[EMAIL-REMOVED]> wrote:

> I have 2 problems that I can't seem to figure out. The first is not a major
> presentational problem that I could live with if I had to. I went to
> w3schools.org to look this one up, and still didn't work. The issue is this:
> There is a pipe (|) in front of the sub-nav first item, which I would like to
> get rid of. I tried the :before and it doesn't work. Any suggestions or
> comments on this?
>

Make a unique class for the first one which removes the border:

..first a{
border-left:0px;
}

<li class="first"><a href="/tools/csstabs/index.php?section=2">Bio</a></li>


> My second issue is the width of the sub-nav background. If i specify 100% for
> the width the background shoots wider than the page itself. So I tried
> specifing 97% or so, and it looks good to a point in Netscape but not IE. Any
> comments or suggestions about this one?
>


At a guess its due to the way ie implements the box model, good listee's
explanation here:

http://simon.incutio.com/archive/2003/05/26/theBoxModel

benjer


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: