eliminating space below menu
-
hi, i placed into homepage header.php in my Twenty Eleven Child theme a Responsive Slider instead of a regular header. I decided to place the menu above the header, and this is what I got:
http://www.villa-ankora.com/apartments
There is a narrow space between the menu and Responsive Slider which I want to eliminate. I don’t know how.
Sincerely,
Miljenko
-
Use Browser Inspector tools for this kind of CSS work. Look at your navigation styles.
so you suspect at #access and stuff like that related to <nav>? Me too…
Solved!
It was in here, I coppied this from original theme css into child theme css:#access {
background: #222; /* Show a solid color for older browsers */
background: -moz-linear-gradient(#252525, #0a0a0a);
background: -o-linear-gradient(#252525, #0a0a0a);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a)); /* older webkit syntax */
background: -webkit-linear-gradient(#252525, #0a0a0a);
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
clear: both;
display: block;
float: left;
margin: 0 auto 6px;
width: 100%;
}And then I changed
margin: 0 auto 6px;
into
margin: 0 auto 0px;
naturally.
Remember you need only styles that are overridden, in your Child Theme stylesheet.
E.g remove redundant styles;#access { margin: 0 auto 0px; }That’s fair enough! Thanks!
The topic ‘eliminating space below menu’ is closed to new replies.