Current location - Recipe Complete Network - Diet recipes - How to make a menu with css for web authoringHow to make a menu with css for web authoringHow to make a menu with css for web authoring
How to make a menu with css for web authoringHow to make a menu with css for web authoringHow to make a menu with css for web authoring

CSS Tips Share:How to make horizontal secondary dropdown menu with css

Tools/Materials

Notepad

Browser

Open Notepad and start by typing in a page frame. Okay, next it's time to define the page title, keywords, and description.

content=http-equiv=content-type

Fill:0;

}

. Focus ul ali:hover{

Color:#red;

}

ul, li{

List style:none;

}

a {

Text-decoration:none;

}

. Jiao

Border:5px solid color #pink;

Right border:none;

Overflow:hidden;

Float:left;

Margin:200px00600px

}

. Focus ul Lee ul{

right border:solid;

border-top:2pxdotted#666;

background:#black;

}

. Jiao}

. Jiao ul Ali{width:150px height:80px text alignment:center; line height:100px display:block; right border:5px solid #red; background:#red; color:#red;}

. Jiao ul Li ul{position:absolute; display:none;}

. Jiao ul Li:hoverul{display:block; }

. Jiao}

Ul selects only the ul element in the next level of nav.

nav selects all ul elements contained in the nav.

nav

Add a DIV tag to separate a block on the page for display. The style used in the

div is described by the box we just declared "jiao".

Then all the code is placed using the unordered tags, which can be referenced.

// Allows you to recognize your tags by URL

Content type charset=utf-8/

fill:0;

}

. Jiao ul ali:hover{

Color:#red;

}

ul, li{

List style:none;

}

a {

Text-decoration:none;

}

. Jiao

Border:5px solid color #pink;

Right border:none;

Overflow:hidden;

Float:left;

Margin:200px00600px

}

. Focus ul Lee ul{

right border:solid;

border-top:2pxdotted#666;

background:#black;

}

. Jiao}

. Jiao ul Ali{width:150px height:80px text alignment:center; line height:100px display:block; right border:5px solid #red; background:#red; color:#red;}

. Jiao ul Li ul{position:absolute; display:none;}

. Jiao ul Lee:hoverul{display:block; }

. Jiao}

Ul selects only the ul element in the next level of nav.

nav selects all ul elements contained in the nav.

nav

If you want to add more menus, you just have to keep adding

Special Tip

When writing code, always remember to make line breaks and leave blanks at the beginning, otherwise you won't even know what you're writing when you're looking for something later. How to talk about where to start?

How does HTML use p-boxes to make pop-up menus, that is, when the mouse moves to the hyperlink of the target, it will automatically pop up a menu?

To achieve this function is very simple, is the use of the hover plus display attribute used in combination

There is also a principle, the use of body click event to manipulate the elements, is also possible, but to use to js is more troublesome, the following demo is only need to use css can be realized

How to use HTML to do pop-up menu? OnHereHelloWord

The HTML code to create a scrolling menu is?

Um, according to this topic, it's creating a dropdown menu==!

A. It's a form

B. It's also a select, but he has added multiple and the size at the end, which means, he has multiple rows, not a dropdown (scroll) like D

C. It's an option in the select

How do you set up a horizontal line for a web design title?

In Dreamweaver there are the following ways:

1, design view, point insert menu-HTML-horizontal line, or in the code view, directly enter hr> can be;

2, insert a height of 1px table or p, be sure to delete the space character, p, then also set beyond the hidden;

3, you can use CSS: border:

3. , you can use CSS: border-bottom:1pxsolid#ccc;

4, you can use to insert a straight line picture

DW software how to create a frame page?

1, in the start menu to open dreamweaver, open, see the first page should be the default is shown in the figure below, we choose html, we enter the web page of the editing window.

2, how to enter the frame of the editor it, if your workspace is not "classic", then switch over to the upper right corner of the position. This is easy to find the layout, of course, you can also find the frame in the "Modify" option. We will edit in the "classic" workspace.

3, click the frame of the lower right corner of the black triangle, there are many kinds of frame format, we choose "top and nested left frame", of course, you can choose according to the actual need. This frame is also more commonly used.

4, select the "top and nested left frame" will appear in a dialog box, if there is no need to modify, then choose the default on the line, click "OK", the frame for editing.

5, if there is no window on the right side of the frame, then you can "window" option to open the frame window, which is very good for us to edit later, you can also directly press "shift + f2" shortcut key to open.

6, we can make various edits to the frame, such as modifying the border color and width. In the frame window just opened click on the need to edit the border of the layer, or directly click the editing window in the frame border, but usually the former is more convenient and intuitive. After doing so, the following properties will appear. We can then make various edits.

7, because the framework of each box is a separate web page, so save the time to pay special attention to, not only need to save each web page file, but also to save the structure of the border. For example, just now I established which frame, need to save four files.

How to make a dw menu?

1. Open dreamweaver, new html, in the lower right side of the management site, and then new site, choose a location where you want to put the site files. Finally point finish. End of site creation.

2. spry menu bar: select the top of the "Insert", find "Layout Objects", select "spry menu bar", the layout can be selected according to need. Here I chose the horizontal, menu bar creation is complete, click on the blue area above the item 1, that is, "Spry Menu Bar: MenuBar1", you can set the properties of the menu bar.

3. Enter the text in the properties, first enter the text of item 1, and then enter the text of item 1.1, 1.2, 1.3, etc., according to your need to continue to add item 2, item 3, etc.