Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone!

Thank you for always been available and willing to help. Thank you!

I inserted a jQuery banner to a webpage in the website i'm developing.

Once i inserted it, the banner completely covered both the logo an menu.

Please can anyone tell me how to use css to move the banner a little bit downwards.

Thank you.

This is a link of the screenshot of the webpage i'm talking about:

http://ubuntuone.com/6QkO8n4hEuHreDSmd8Vf7L[^]
Posted
Comments
Member-10057365 17-May-13 12:15pm    
I think,by using Adopt Photoshop you can change .
vbmike 18-May-13 12:37pm    
Without knowing the setup of the html you have it is a little hard to tell you how to style your css to move an element. So without knowing the code you have one could advise to use a "margin-top" or "padding-top" setting to the container with the banner to move the banner down slightly. You need to experiment with css and see what happens.

1 solution

vbmike is right. We need to see the code. But by looking at the screenshot I can only guess that you are running the banner in the same
as the menu and logo. When you are designing a site, you have to organize your
containers before you attempt to fill anything. This is just an example of the most basic setup

HTML
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>

</head>
<body>
    <!--main page container -->
    <div>
        <!--header container -->
        <div>
            <!--logo/menu wrapper -->
            <div>
                <div><!--logo container with left css property -->
                    <img src="logo.png" alt="" />
                </div>
                <div><!--menu container with right css property -->
                    menu goes here
                </div>
            </div>
            <!--banner container -->
            <div>
                banner goes here
            </div>
        </div>

        <!--body container -->
        <div></div>

        <!--footer container -->
        <div></div>

    </div>

</body>


But basically, you can do anything you want. For all we know your code is probably right and the banner is just in the wrong container. Hope this helped.
 
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