Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to put content on the right side and the menu on the left in Mobirise bootstrap buildr? I'm using Code Editor but it doesn' work properly.

What I have tried:

header#masthead {
    width: 100%;
    max-width: 20%;
    text-align: center;
    position: fixed;
    background-color: #232323;
    padding: 10px 20px;
    float: left;
}
Posted
Updated 5-Apr-19 4:44am

1 solution

If you want it on the right, why are you using float:left?

Also, you're using position:fixed. I believe this will prevent float from working at all.

Beyond that, we don't have any idea what your markup looks like, so we have no real idea how the CSS you posted will affect it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900