html - Broken positioning of a <ul> menu element -
i trying position website navigation on right of header. however, existing code messy , can't work.
i talking navigation @ website's header - https://softuni.bg/ notice how it's broken , positioned below header.
i want this:
the main problem of in tag, has width. however, if logged in user, item in menu , falls on second line..
all appreciated!
try code in id #loginbtn>li>a
your code:
#loginbtn>li>a { background: #ff9c00; border-radius: 0; padding-left: 12px; padding-right: 15px; position: absolute; top: 0; right: 0; }
modified coad:
#loginbtn>li>a { background: #ff9c00; border-radius: 0; padding-left: 12px; padding-right: 15px; position: absolute; top: 0; left: 0; /* modifide line */ margin-left: 250px; /* modifide line */ }
Comments
Post a Comment