style sheets

Brad Anderson brad at dsource.org
Sun Jun 4 14:45:54 PDT 2006


Brad Anderson wrote:
> Walter Bright wrote:
>> I took out the:
>>
>>     height=0;
>>
>> lines in www.digitalmars.com/d/style.css, so it works in mozilla, but
>> now it doesn't look right in Explorer (excessive vertical spacing).
>> Also, the tabs on the upper right are one pixel too low in mozilla.
>>
>> Anyone know how to write a style sheet that will work in both?
> 
> div#navigation ul
> {
>         list-style-type: none;
>         margin-top: 0px;

although I think it looks better with the above line being 1ex, like the rest.

so, you could do margin: 1ex; and be done with it.

>         margin-left: 1ex;
>         margin-right: 1ex;
>         margin-bottom: 1ex;
>         padding: 0;
> }
> div#navigation li
> {
>         padding-left: 0;
>         padding-bottom: 3px;
> }
> div#navigation a
> {
>         text-decoration: none;
>         padding: 3px;
>         background-color: #eeeeee;
>         color: black;
> }
> div#navigation a:hover
> {
>         background-color: #dddddd;
> }
> 




More information about the Digitalmars-d-announce mailing list