When I use background-attachment: fixed on my body background, the background stays fixed.
Now I want to keep my top headers and navigation fixed as well. I use the position:fixed: property in CSS.
When I do this on multiple divs, one after another, at the top, wierd stuff happens. the wrapper goes out of wack and the header divs go vertically out of wack.
Can you use the position: fixed; on consecutive...
User Profile
Collapse
-
jeffreycoontz started a topic Keeping a masthead and navigation div stationary while the content scrolls ?in HTML CSSKeeping a masthead and navigation div stationary while the content scrolls ?
-
There was an anchor tag with a background attribute set to #fff which was further down. I saw it and here it was:
...Code:#mainMenu a { display:block; padding:3px; text-decoration:none; background-color:#fff; color:#009; } I changed it to : #mainMenu a { display:block; padding:3px; text-decoration:none;Last edited by Rabbit; May 26 '14, 05:25 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data. -
-
URGENT MATTER.. cannot get background color to show up on a display:block. See above for snippets of code in the CSS.. and the code in index.Leave a comment:
-
I meant to put the closing div tag..just for clarity..
...Code:<div id="navigation"> <ul id="mainMenu"> <li><a href="firstMenu.html">Home</a></li> <li id = "li1"><a href="firstMenu.html" >Services</a> <ul id = "ul1"> <li><a href="firstMenu.html">ServiceLast edited by Rabbit; May 26 '14, 04:47 AM. Reason: Please use [code] and [/code] tags when posting code or formatted data.Leave a comment:
-
Here is the navigation div with the menus.. This should give you the idea. The navigation div has a background color.
...Code:<div id="navigation"> <ul id="mainMenu"> <li><a href="firstMenu.html">Home</a></li> <li id = "li1"><a href="firstMenu.html" >Services</a> <ul id = "ul1">Last edited by Rabbit; May 26 '14, 04:46 AM. Reason: Please use [code] and [/code] tags when posting code or formatted data.Leave a comment:
-
There is some kind of issue with display:block not wanting to show a background color.Leave a comment:
-
-
The background-color tag in the #mainmenu should apply to all the li tags after it.Leave a comment:
-
...Code:#mainMenu { z-index: 120; width:1100px; padding-top: 3px; text-align: center; margin-left: auto; margin-right: auto; background-color: #dfdfdf; font-family: "Trebuchet MS"; } #mainMenu li { position:relative; display:block; width:130px; float:left;Last edited by Rabbit; May 25 '14, 09:16 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.Leave a comment:
-
problem with display:block - background-color will not show.
On a display:block element for navigation, I cannot get a background color to show up other than white.
What do I do?
No activity results to display
Show More
Leave a comment: