Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.



 
Trang ChínhTrang Chính  Tìm kiếmTìm kiếm  Latest imagesLatest images  Đăng kýĐăng ký  Đăng NhậpĐăng Nhập  

Lần truy cập trước của bạn:
Hôm nay: 29/4/2024, 10:53
Xem bài mới từ lần truy cập trước
Xem bài của bạn
Xem bài chưa có ai trả lời
 Share | 
DIV TABLEXem chủ đề cũ hơn Xem chủ đề mới hơn Go down

shenlong

shenlong

DIV TABLE Medal810

.:.Thông tin.:.

Giới tính Giới Tính: Nam
NickName User: shenlong
Đến từ Đến từ : Đại Học Trà Vinh
Age Age : 34
Posts Posts : 130
Join date Join date : 14/06/2009

Giới tính Giới tính : Nam
Age Age : 34
Birthday Birthday : 29/08/1989
Job/hobbies Job/hobbies : Sinh Viên
Đến từ Đến từ : Đại Học Trà Vinh
Sở thich của bạn Sở thich của bạn : Game,Music
Posts Posts : 130
Points Points : 26363
Thanks Thanks : 32
Join date Join date : 14/06/2009
Pet Pet : 2 .Articuno


DIV TABLE Empty29/10/2010, 23:14
Nguồn bài gửiNguồn: http://da07tt.forum-2007.com/t623-topic
Bài gửiTiêu đề: DIV TABLE
Da07tt Community - Kết nối bạn bè 
------------------------------------------------------------------
This article demonstrates using div elements to effectively to build websites without using table elements on a page
Introduction


This article demonstrates using div elements to effectively to build websites without using table elements on a page. Because there are a number of advantages to the div element most clients ask designers to develop websites using div elements rather than table elements. The code below is for beginners learning to use div elements to develop websites.
The following explains why to use DIV over TABLE elements.
Pros of Table Element: Most designers use table for a consistent look. Tables are also easy to maintain. Another advantage of table is that it is compatible with the most browsers.
Cons of Table Element: All this comes with a cost: Too many nested tables increase page size and download time. More table elements push important content down so search spiders are less likely to add content to search engines.
Pros of DIV Element: div with CSS we can achieve the same table based page structure and reduce the number of elements on the page, which allows the page to load faster. It also makes page more compatible with search engine spiders.
Cons of DIV Element: The major drawback of this is not all CSS elements are not browser compatible. Because of this we have to write some custom CSS to resolve issues.Using the Code


I have created one simple application which shows how easily you can create you own pages with div elements only.
The following diagram demonstrates the layout of div elements.
DIV TABLE Image001
DIV TABLE DivLayout
Here is a list of the style sheet classes I have created for the page layout. Let’s get into more detail.

  • divHeaderTable: Class assigned to header of the html page and its works as headertable
  • divHeaderRow: Class assigned to the div element which works as header row of table. As height of header image is fix to 105 row having height element value 105px.
  • divHeaderColumn: Class assigned to div element which works as header column of the table. As header part is divided in three part the width element having value 99%.
  • divTable: Class assigned to the div element woks as the table in container part of html document.
  • divRow: Class assigned to the div element woks as the row in container part of html document.
  • divColumn: Class assigned to the div element woks as the table in container part of html document. As container form element are 4 per row the width element having value 24%.
CSS:
Code:

body
{
            background-color: LightBlue;
            font-family: Verdana;
            font-size: 13px;
}
.divHeaderTable
{
            width: 100%;
            padding-bottom:5px;
            display:block;
}
.divHeaderRow
{
            width: 100%; [color=#008000][i]/*[/i][/color][color=#008000][i] add extra that you want to for header column */[/i][/color]
            display:block;
            height:105px;
}
.divHeaderColumn
{
            [color=blue]float[/color]: left;
            width: 33%;
            display:block;
}
.divTable
{
            width: 100%;
            display:block;
            padding-top:10px;
            padding-bottom:10px;
            padding-right:10px;
            padding-left:10px;
}
.divRow
{
        width: 99%;
        display:block;
        padding-bottom:5px;
}
.divColumn
{
        [color=blue]float[/color]: left;
        width: 24%;
        display:block;
}
Following is HTML code of the page which shows how the classes assigned to the elements.

HTML:
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Gmind Solusion-DivElement Layout</title>
    <link href="CSS/StyleSheet.css"  rel="Stylesheet"  type="text/css"  />
</head>
<body>
 
 <div style="width:99%; height:565px;">
    <div class="divHeaderTable">
        <div class="divHeaderRow">
            <div class="divHeaderColumn">
                <img alt="Offshore Outsourcing software development company India"
                    title="Offshore Outsourcing software development company India"
                    src="Images/gmind.png" width="100%" height="105" />
            </div>
            <div class="divHeaderColumn">
               
            </div>
            <div class="divHeaderColumn">
                <div>
                    <img alt="Gmind" width="15" height="10" src="Images/smllindia.jpg" />
                    +91-9702989270
                </div>
                <div>
                    <img alt="Gmind" src="Images/smallusa.jpg" />
                    +91-9924839208
                </div>
                <div>
                </div>
                <div>
                </div>
            </div>
        </div>
    </div>
   
    <div id="menu" class="divHeaderTable" >
        <ul style="list-style-type:none;" >
            <li style="float:left"><a href="javascript:void(0);" >Home</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >About Us</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Services</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Technology</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Outsourcing</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Quality</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Career</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Blogs</a>  </li>
            <li style="float:left"><a href="javascript:void(0);" >Partner</a>  </li>
            <li><a href="javascript:void(0);" title="Contact Us">Contact Us</a>  </li>
        </ul>   
    </div>
   
    <div id="divHeader" class="divHeaderTable">
        <h4>User Registration</h4>
    </div>
   
    <div id="content" class="divTable">
      <div class="divRow">
        <div class="divColumn">
            <div>
                <label id="lblSolutation" > Solutation</label>
            </div>
            <div>
                <input type="text" id="txtSolutation" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="lblFname" > First Name</label>
            </div>
            <div>
                <input type="text" id="Text1" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="lblMname" > Middle Name</label>
            </div>
            <div>
                <input type="text" id="Text2" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="lblLname" > Last Name</label>
            </div>
            <div>
                <input type="text" id="Text3" />
            </div>
        </div>
      </div>
     
      <div class="divRow">
      <div class="divColumn">
            <div>
                <label id="Label10" > Login Name</label>
            </div>
            <div>
                <input type="text" id="Text13" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="Label9" > E-mail</label>
            </div>
            <div>
                <input type="text" id="Text12" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="Label7" > Password</label>
            </div>
            <div>
                <input type="password" id="Text10" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="Label8" > Confirm Password</label>
            </div>
            <div>
                <input type="password" id="Text11" />
            </div>
        </div>
      </div>
     
      <div class="divRow">
        <div class="divColumn" style="width:48%;">
            <div>
                <label id="Label1" > Address1</label>
            </div>
            <div>
                <textarea id="Text4" style="width:80%;" ></textarea>
            </div>
        </div>
        <div class="divColumn" style="width:48%;">
            <div>
                <label id="Label3" > Address2</label>
            </div>
            <div>
                <textarea id="Text6" style="width:80%;"> </textarea>
            </div>
        </div>
      </div>
     
      <div class="divRow">
        <div class="divColumn">
            <div>
                <label id="Label2" > State</label>
            </div>
            <div>
                <input type="text" id="Text5" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="Label4" > City</label>
            </div>
            <div>
                <input type="text" id="Text7" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="Label5" > Country</label>
            </div>
            <div>
                <input type="text" id="Text8" />
            </div>
        </div>
        <div class="divColumn">
            <div>
                <label id="Label6" > Pin Code</label>
            </div>
            <div>
                <input type="text" id="Text9" />
            </div>
        </div>
      </div>
     
      <br />
      <div class="divRow">
        <input type="submit" value="Submit" onclick="javascript:void(0);" />
          or 
        <a  href="javascript:void(0)">Cancel </a>
      </div>
    </div>
 </div> 
 <div style="text-align:center; background-color:Green;">
  Contact us to discuss your requirements
 </div>
</body>
</html>


Chữ Kí Của: shenlong
Giới tính Giới tính : NamAge Age : 34Birthday Birthday : 29/08/1989Job/hobbies Job/hobbies : Sinh ViênĐến từ Đến từ : Đại Học Trà VinhSở thich của bạn Sở thich của bạn : Game,MusicPosts Posts : 130Points Points : 26363Thanks Thanks : 32Join date Join date : 14/06/2009Pet Pet : 2 .Articuno

cô bé dễ khóc

cô bé dễ khóc

DIV TABLE Medal217

.:.Thông tin.:.

Giới tính Giới Tính: Nữ
NickName User: cô bé dễ khóc
Đến từ Đến từ : Trà Vinh
Age Age : 34
Posts Posts : 14
Join date Join date : 18/06/2009

Giới tính Giới tính : Nữ
Age Age : 34
Birthday Birthday : 15/08/1989
Job/hobbies Job/hobbies : student
Đến từ Đến từ : Trà Vinh
Sở thich của bạn Sở thich của bạn : *+*
Posts Posts : 14
Points Points : 25583
Thanks Thanks : 1
Join date Join date : 18/06/2009
Pet Pet : 8 .Luna


DIV TABLE Empty30/10/2010, 21:09
Nguồn bài gửiNguồn: http://da07tt.forum-2007.com/t623-topic
Bài gửiTiêu đề: Re: DIV TABLE
Da07tt Community - Kết nối bạn bè 
------------------------------------------------------------------
ten ten ten tèn!sao hay thế ta?


Chữ Kí Của: cô bé dễ khóc
Giới tính Giới tính : NữAge Age : 34Birthday Birthday : 15/08/1989Job/hobbies Job/hobbies : studentĐến từ Đến từ : Trà VinhSở thich của bạn Sở thich của bạn : *+*Posts Posts : 14Points Points : 25583Thanks Thanks : 1Join date Join date : 18/06/2009Pet Pet : 8 .Luna

Thông điệp:

****************Hãy cùng chia sẻ với bạn bè bằng cách****************

Copy đường Link dưới đây gửi đến nick yahoo bạn bè!


DIV TABLEXem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang
Trang 1 trong tổng số 1 trang
* Viết tiếng Việt có dấu, là tôn trọng người đọc.
* Chia sẻ bài sưu tầm có ghi rõ nguồn, là tôn trọng người viết.
* Thực hiện những điều trên, là tôn trọng chính mình.
-Nếu chèn smilies có vấn đề thì bấm A/a trên phải khung viết bài
AVIM Control [F12 to Hide]
AutoTelexVNIVIQRVIQR*OffSpellOldAccent

Permissions in this forum:Bạn không có quyền trả lời bài viết
 :: 

Thư Giãn & Giải Trí

 :: 

Tin Tức

 :: 

Thông tin công nghệ

-
 




Thông tin diễn đàn
Copyright ©2008 - 2009, DA07T Forum.
Design by by Mai Minh Thuận [Admin]
Bản quyền by Haitac261189.
RSS Liên hệ MAP
Powered by phpBB Version 2.0 Lisenced
Copyright ©2000 - 2008.
Gửi cho bạn trang này | Click vào tải Firefox 3 || Lưu ý:Nên sử dụng Fire Fox 3 để duyệt Web
Free Auto Backlinks From WebXayDung.VNText Back Links ExchangeFree forum | ©phpBB | Free forum support | Báo cáo lạm dụng | Thảo luận mới nhất