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:

enter image description here

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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -