Jump to content
Sign in to follow this  
ricardo_t

Moving a Div down

Recommended Posts

Hi Guys

How can I move a Div down (red maeked) I want to position the div under the Header Image.

here is my code

 

<div id="navigation">
            <ul>
                <li><a href="index.html">Home</a></li>
                <li><a href="unser_betrieb.html">Unser Betrieb</a></li>
                <li><a href="unsere_produkte.html">Unsere Produkte</a></li>
                <li><a href="markt.html">Markt</a></li>
                <li><a href="catering.html">Catering</a></li>
                <li><a href="kontakt.html">Unser Kontakt</a></li>
            </ul>
        </div><!-- navigation end-->

 

and the CSS

 

#navigation{
        display: block;
        float: left;
        clear: both;
        width: 960px;
        height: 98px;
        float: left;
        clear: both;
}

 

Thanks  :-)

1.jpg

Share this post


Link to post
Share on other sites

Give it a top margin equal to the height of the image. You do not need to float it

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×