آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

37
ت ی سا ی وب ح را ط ش وز م ا ت ی ل پ م ت ک ی ی ح را ط م – ت ش ه ه س ل ج ی وب ح را ط س ی دز ت د رت گی ت ماش ت ر ی س3 ی5 ی عاب لا ط رای ا ب او ت ماش: ت مازه ش09125773990 09371410986 ک پ ن رو کی ل ا ت ش ی: [email protected]

Upload: clem

Post on 15-Jan-2016

48 views

Category:

Documents


1 download

DESCRIPTION

آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت. تدریس طراحی وب برای اطلاعات بیشتر تماس بگیرید تاو شماره تماس: 09125773990 09371410986 پست الکترونیک : [email protected]. Web Design Training Template Designing. Part 08 Author :Babak Tavatav. CSS float Property. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

آموزش طراحی وب سایتجلسه هشتم – طراحی یک تمپلیت

تدریس طراحی وببرای اطالعات بیشتر تماس بگیرید

تاو09125773990شماره تماس:

09371410986 : پست الکترونیک

[email protected]

Page 2: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

Web Design TrainingTemplate Designing

Part 08Author :Babak Tavatav

Page 3: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

CSS float PropertyThe float property sets where an image or a text will appear in another element.Note: If there is too little space on a line for the floating element, it will jump

down on the next line, and continue until a line has enough space.Note: Content, background, and borders of inline elements should go in front of

the float. Background and borders of a block element should go behind the float, but the content of the block element should go in front of the float.

Possible ValuesValueDescriptionleft : The image or text moves to the left in the parent elementright : The image or text moves to the right in the parent elementNone : (Default) The image or the text will be displayed just where it occurs in the

text

Page 4: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<html><head><style type="text/css">img {float:right;}</style></head>

Page 5: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<body><p>In the paragraph below, we have added an image

with style <b>float:right</b>. The result is that the image will float to the right in the paragraph.</p>

<p><img src="logocss.gif" width="95" height="84" />This is some text. This is some text. This is some text.This is some text. This is some text. This is some text...</p></body></html>

Page 6: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت
Page 7: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

.thumbnail {float:left;width:110px;height:90px;margin:5px;}

Page 8: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<img class="thumbnail" src="klematis_small.jpg" width="107" height="90"><img class="thumbnail" src="klematis2_small.jpg" width="107" height="80"><img class="thumbnail" src="klematis3_small.jpg" width="116" height="90"><img class="thumbnail" src="klematis4_small.jpg" width="120" height="90"><img class="thumbnail" src="klematis_small.jpg" width="107" height="90"><img class="thumbnail" src="klematis2_small.jpg" width="107" height="80"><img class="thumbnail" src="klematis3_small.jpg" width="116" height="90"><img class="thumbnail" src="klematis4_small.jpg" width="120" height="90">

Page 9: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت
Page 10: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

CSS Clear PropertyImage and text elements that appear in another element are calledfloating elements.The clear property sets the sides of an element where other floatingelements are not allowed.

ValueDescription• Left : No floating elements allowed on the left side• Right: No floating elements allowed on the right side• Both: No floating elements allowed on either the left or the right

side• None : Default. Allows floating elements on both sides

Page 11: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

.html<!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></title> <link href="StyleSheet.css" rel="stylesheet" type="text/css" />

</head>

Page 12: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<body>

<div> <div id="wrapper"> <div id="header"> <div id="Header-Menu">آمدید ثبت - <"#"=a href> ! خوش سایت به ورود;a>&nbsp;&nbsp;&nbsp;&nbsp/>نامکاال سبد ها ;nbsp;&nbsp; |&nbsp&درباره سواالت ;nbsp; |&nbsp&آگهیما ;nbsp; |&nbsp&متداول با ما ;nbsp; |&nbsp&همکاری با تماس

<br /> </div> <div id="Header-Logo"></div> <%-- <div id="Header-Welcome" > آمدید ثبت - <"#"=a href> ! خوش سایت به ورود<%--<a></div/>نام

</div>

Page 13: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<div id="main"> <div id="navi"> <div id="navi-left"></div> <div id="navi-center"><div id="navi-right"></div></div> </div> <div id="row03"> <div id="slideshow"> </div> <div id="mainmenu">

<div id="menu-header"></div> <div id="menu-content"></div>

</div>

Page 14: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<div id="row04"> <div id="row04-left" > <div id="t1"></div> <div id="t2"></div> <div id="t3"></div> </div> <div id="row04-right"> <div id="adv01"></div> <div id="adv02"></div> <div id="adv03"></div> </div> </div> </div> </div> </div>

Page 15: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

<div id="clearer"></div> </div> <div id="footer"> سبد به سایت این حقوق تمامی

است مربوط <div/> کاال</div> </div></body></html>

Page 16: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

.css

body{

margin-right: 3%;margin-left: 3%;

}

Page 17: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#wrapper {

width:900px; margin:0 auto;}

Page 18: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#Header-Logo{

width: 275px;

float: right;padding: 10px;background-image: url( Images/Logo.jpg );height: 70px;background-repeat: no-repeat;

}

Page 19: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

* { margin:0; padding:0; border:0;}

Page 20: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#header{

background-color: #eee;background-image: url(image/bg_menu.jpg);height: 80px;padding-bottom: 10px;padding-left: 10px;background-repeat: no-repeat;

}

Page 21: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#Header-Menu{

width: 580px;float: left;padding: 0px 0px 0px 0px;font-family:tahoma; font-size:11px;

}

Page 22: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#main{

background-repeat: repeat-y;background-color: #FFFFFF;width: 887px;

}

Page 23: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#navi-left{

width: 194px;float: left;

color: #fff;background-image: url( 'Images/bar_sabad.jpg' );background-repeat: no-repeat;height: 60px;

}

Page 24: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#navi-center{

margin-left: 194px;margin-right:572px;

background-image: url( 'Images/bar_supprt.jpg' );background-repeat: no-repeat;width: 698px;height: 60px;

}

Page 25: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#navi-right{

width: 580px;height: 60px;float: right;background-image: url( 'Images/bar_bg.jpg' )

}

Page 26: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

/*----------Menu & Slideshow --------------*/ #row03{

clear: both;padding-top: 10px;width: 887px;

}

Page 27: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#slideshow{

width:670px; float: left;background-image: url( 'Images/Store_Slice_19.jpg' );

color:#fff; height: 271px; }

Page 28: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#mainmenu{

width: 200px;margin-left:670px;

}

Page 29: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#menu-header{

background-image: url( 'Images/menu_top.jpg' );

background-repeat: no-repeat;width: 215px;height: 37px;

}

Page 30: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#menu-content{

background-image: url( 'Images/menu_bg.jpg' );

height: 234px;width: 215px;

}

Page 31: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

/*----------Row 04 --------------*/ #row04"{

clear: both;width: 847px;}

#row04-left{ width:240px; float: left;

}

Page 32: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#t1{

background-image: url( 'Images/tabliq1.jpg' );

width: 240px;height: 152px;background-repeat: no-repeat;

}

Page 33: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#t2{

background-image: url( 'Images/tabliq2.jpg' );

width: 240px;height: 153px;background-repeat: no-repeat;

}

Page 34: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#t3{

background-image: url( 'Images/tabliq3.jpg' );width: 240px;height: 201px;background-repeat: no-repeat;

}#row04-right{

width: 660px;margin-left:240px;}

Page 35: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

#adv01{

background-image: url( 'Images/Store_Slice_38.jpg' );width: 650px;height: 194px;

}#adv02{

background-image: url( 'Images/Store_Slice_38.jpg' );width: 650px;height: 194px;

}

#adv03{

background-image: url( 'Images/Store_Slice_38.jpg' );width: 650px;height: 194px;

}

Page 36: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

# clearer { clear:both;}

#footer{

padding: 10px;font-size: 11px;text-align: center;

}

Page 37: آموزش طراحی وب سایت جلسه هشتم – طراحی یک تمپلیت

The End