top margin of the slider in twenty twelve
-
Hi,
I”m using easing slider as a header image slider in twenty twelve. Therefore, I removed the header image in dashboard and put the slider code in header.php , like this :
</nav><!-- #site-navigation --> <?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?> <?php if ( get_header_image() ) : ?> <a>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a> <?php endif; ?> </header><!-- #masthead -->
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
When I do this, the image slider touches the navigation bar (the grey line). To change the distance between the navigation bar and the slider I used the next css code (I have read about this code in one of the posts on this forum.):
.easingsliderlite, .easingsliderlite div, .easingsliderlite a, .easingsliderlite img {
line-height: 0 !important;
margin: 5px 0 0 !important;
outline: medium none !important;
}Now I have the right distance at the top of the slider but the images are smaller, they loose 5 pixels at the bottom.
Who knows a solution for this?
See the slider with the css changed (the images have lost 5 pixels in the height): https://www.column-razenberg.nl
- The topic ‘top margin of the slider in twenty twelve’ is closed to new replies.