CSS float.

Source: Internet
Author: User
LOGO: a picture, float left. The navigation bar is a lot of content in a table. Now let's think about the current code that puts the table element on the homepage and the second page below the LOGO image. Now the LOGO is left floating, but the background color is set for daohang, the background color is below the LOGO image. Table or...

LOGO: a picture, float left.
The navigation bar is a lot of content in a table.

Now, let's move the table element on the homepage and the second page below the LOGO image.
The current Code, now the LOGO is left floating, but set the background color for daohang, the background color is below the LOGO image. The table is still on the right.

Logo {
float:left;}
Daohang {
}

Homepage Page 2 Page 3
             

Reply content:

LOGO: a picture, float left.
The navigation bar is a lot of content in a table.

Now, let's move the table element on the homepage and the second page below the LOGO image.
The current Code, now the LOGO is left floating, but set the background color for daohang, the background color is below the LOGO image. The table is still on the right.

Logo {
float:left;}
Daohang {
}

Homepage Page 2 Page 3
             

This is the final result.
Because navigation is

A table provided by others, so it contains style and other things, so the whole

It's mainly about absolute location!



To a demo: https://jsbin.com/buyojixana/edit? Html, css, output

Set an ID and use CSS to make the image above. At present, no matter how floating, it cannot overlap. Use a LOGO image to hide the content at the front of the navigation bar. How to Set CSS.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.