Dynamic Webpage Design Based On CSS
Dynamic Webpage Design Based On CSS
Abstract - The traditional webpage using nested tables for Among them, in order to realize the webpage display
webpage, this method has the advantages of simple operation, but center,[3] set the box margin property right is 0 auto, in order
generates redundancy HTML code which is not conducive to find to achieve the middle two column display, set the left float
and manage, prolix. however, CSS webpage layout is a concise code, properties to left, main float properties to right, in order to
more functional, higher flexibility of webpage layout design method.
This article presents a method of personal blog of webpage design
achieve the border effection, set the border property to 1
and application based on CSS. frames, as shown in Figure 2.
Index Terms - table layouts, CSS, webpage design
1. Introduction
In recent years, personal blog is a kind of network diary's
personal website form, it has neat interface, easy
management, clear content and other characteristics, form
(TABLE) layout and CSS layout is the construction of
personal blog of two common web page layout method. Form
has advantages of simple use, [1] fast production, and
convenient manufaction etc, but its page code redundancy,
structure and performance mixed together, CSS layout
method makes up the deficiency of the layout of the form,
separates performance and content , greatly simplify the code,
reduce the network bandwidth resource waste, support the
browser backward compatibility. Fig. 1 page structure
2. Structural Layout
CSS Cascading Style Sheets is the abbreviation, named
"Cascading Style form". [2]CSS is the Web standard layout
language, it can be effective for page layout, fonts, colors,
backgrounds and other effects to achieve precise control. CSS
has strong applicability, it can control the page and the
appearance of the site, CSS can make the webpage more
concise. The basic idea is: use DIV+CSS DIV to define the
semantic structure; In whole on the < div > mark block, then
to each block the CSS positioning, and eventually with CSS
to beautify the web page, such as background, line frame,
alignment attribute, etc. In each of the last add content, such
as text, pictures, etc
With a personal blog as an example, using DIV+CSS Fig 2. Page effect
layout to reconstruct this page, the page is divided roughly for
top portion, the navigation section, the side, as in Figure 3. Navigation List Display
1,The code is as follows: Link dynamic display of webpage design is a very
<body> important technology, [4]there are 4 kinds of links to state the
<div id=”header”></div> /* head*/ most widely used, No access link is a: link, visited links is a:
<div id="menu"></div> /* menu*/ visited, hovering the mouse pointer in the link state is a:
<div id="main"> /*twi sub blocks in main block*/ hover, being activated to link is a: active, in webpage design,
<div id="sidebar"></div>/* sidebar*/ through the definition of link, according to the link visited
<div id="content"></div>/* content*/ hover active order defined below ,The following settings link
</div> at the top region style, add a navigation bar. as shown in
<div id="footer"></div>/* foot*/ Figure 3.
</body>
131