2 replies [Last post]
thevinmanfxst
thevinmanfxst's picture
Offline
Regular
Last seen: 14 years 8 weeks ago
Timezone: GMT-5
Joined: 2006-04-27
Posts: 17
Points: 0

Is it possible to left justify the vertical CSS menu?

...I mean all the way over to the edge?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 16 weeks 1 day ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

[Solved] Is it possible to left justify?

If you mean un-indent a list, then, yes. Firefox and Safari use left padding to indent the list, while IE and Opera use left margin. In all cases, the indention is about 40px. Doing

ul {
    padding: 0;
    margin: 0;
    }
will cause the list to hug the edge of its parent.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

thevinmanfxst
thevinmanfxst's picture
Offline
Regular
Last seen: 14 years 8 weeks ago
Timezone: GMT-5
Joined: 2006-04-27
Posts: 17
Points: 0

[Solved] Is it possible to left justify?

kk5st wrote:
If you mean un-indent a list, then, yes. Firefox and Safari use left padding to indent the list, while IE and Opera use left margin. In all cases, the indention is about 40px. Doing
ul {
    padding: 0;
    margin: 0;
    }
will cause the list to hug the edge of its parent.

cheers,

gary

Excellent! That worked. Thanks!