Proficient in CSS. Div webpage style and layout (6) -- page and browser Elements

Source: Internet
Author: User

In addition to text, images, tables, and forms, there are many elements in pages and browsers. We will introduce these elements one by one; this time we will introduce rich hyperlink effects, mouse effects, and page scroll bars.

In the rich special hyperlink effects, we will first introduce the dynamic hyperlink. Let's take a look:

The Code is as follows:

<HTML> 

In the code, a table tag is used to separate the banner in the page, and a table tag is used to separate a menu in a horizontal arrangement to achieve a beautiful browsing effect. It is worth noting that a: Link, A: visited, and a: hover respectively set the dynamic hyperlink effect.

Next let's take a look at the dedicated hyperlink: Let's take a look at this effect:

These hyperlinks have grown into buttons. When the mouse moves up, they are changed separately. How can they be implemented in CSS:

<HTML> 

First, a mark a is used to set the entire button. A: link and a: visited use the same settings, here, border-top and border-left use the same color. Border-bottom and border-right use the same color, which achieves a shadow effect; the clever replacement of these two colors in hover gives us the feeling that they are the same as what they are.

Let's continue to see the embossed hyperlink: Let's take a look at the effect:

The embossed button seems to be on the paper. When the mouse is put up, its changes are more beautiful than the button just now. How can this be achieved:

<HTML> 

The body is still very simple. A table, a banner, and countless A tags are side by side, indicating hyperlinks. The key point is, set this horizontal table tag to a background image, table. banner repeats a small image.

Let's look at the CSS control mouse Arrow: Let's look at this effect:

Let's take a look at the Code:

<HTML> 

We have set a class for the help button, cursor: Help. Of course, he has many values, not only help. You can try it on your own.

Page scroll bar: Let's take a look at the effect. This scroll bar is no longer the default Effect of IE, but a very brilliant blue color. we narrow down the page and we can see that the scroll bar on the right is also changing. Let's take a look at the Code:

<HTML> 

The code is very simple: scrollbar has many attributes, so you can try it on your own.

The effect is as follows:


Next we will continue to improve our blog, so stay tuned.

Related Article

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.