Zoque.Forum
»
Css & Div ile 3 blok
|
| CSS CSS ile ilgili merak ettiklerinizi, sorunlarınızı ve fikirlerinizi bu bölümde paylaşabilirsiniz. |
![]() |
|
|
LinkBack | Seçenekler |
|
|
#1 (permalink) |
|
Üyelik Tarihi: 26.07.2006
Yer: sivas
Mesaj: 19
|
Css & Div ile 3 blok
arkadaşlar bütün CSS ve alakalı konuları okumama rağmen tablo sisteminden yeni geçmeye çalıştığım div ve CSS ile bir arayüz hazırlamak istedim ama çuvalladım yapmaya çalıştığım arayüz ekte yalnız likit bir arayüz olması lazım (çözünürlüğe göre boyut değişecek) yardımlarınızı bekliyorum
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML> <head> <meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" /> <title>Untitled 1</title> <style type="text/CSS"> #endis{ margin:0 auto auto auto; width:83%; height:400px; padding:5px; border:1px gray solid; } #baslik{ height:70px; } #sol{ width:170px; height:100px; float:left; margin-top:15px; } #icerik{ width:49%; height:55%; float:left; margin:15px 15px auto 15px; } #sag{ float:left; width:170px; height:100px; margin-top:15px } </style> </head> <body> <div id="endis"> <div id="baslik"></div> <div id="sol"></div> <div id="icerik"</ div> <div id="sag"></div> </div> </body> </HTML> Mesaj ahmetkoray tarafından 27.03.2007 (19:07) yeniden düzenlendi.. |
|
|
|
|
|
#4 (permalink) |
|
Üyelik Tarihi: 26.07.2006
Yer: sivas
Mesaj: 19
|
Re: Css & Div ile 3 blok
ilgilendiğiniz için teşekkür ederim
div deki hatalar kopy paste yaparken olmuş normalde yok, sorun 1 : ortadaki divin likit olması(çözünürlüğe göre width in değişmesi) sorun 2 : <div id="baslik"></div> <div id="sol"></div> <div id="icerik" style="width: 40%"></div> <div id="sag"></div> bu üç div, id si endis olan divin içerisinde ortalanması yani en soldaki div sola yapışık en sağdaki div sağa yapışık id si içerik olan div de ortalı ve kenarlarındaki (margin) boşluk eşit olmalı (aynı zaman da likit olmalı) |
|
|
|
|
|
#5 (permalink) | |
|
Üyelik Tarihi: 31.03.2007
Yer: Antalya
Mesaj: 15
|
Re: Css & Div ile 3 blok
Alıntı:
Denemedim ama umarım çalışır |
|
|
|
|
|
|
#7 (permalink) |
|
Re: Css & Div ile 3 blok
Kod:
<!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> <body> <style> /* CSS Document */ body { background:#9343B9; text-align:center; margin:20px; padding:0; font:normal 0.8em/1.2em verdana,aria,sans-serif; color:#666; } #wrapper1 { position:relative; text-align:left; width:100%; background:#0f0; } #wrapper2 { position:relative; text-align:left; width:100%; background:#fff; } #header { background:#bf0021; padding:10px; margin:0; text-align:center; color:#FFF; } #maincol { position:relative; margin:0; padding:10px; } #leftcol { position:relative; top:-10px; left:-10px; float:left; width:220px; /* for IE5/WIN */ voice-family: "\"}\""; voice-family:inherit; width:200px; /* actual value */ margin:0 0 -10px 0; padding:10px; background:#ECB9E8; z-index:100; } #rightcol { position:relative; top:-10px; right:-10px; float:right; width:220px; /* for IE5/WIN */ voice-family: "\"}\""; voice-family:inherit; width:200px; /* actual value */ margin:0 0 -10px 0; padding:10px; background:#D7C4FA; z-index:99; } #centercol { position:relative; padding:0 240px; } </style> </head> <div id="header"><h1>baslik</h1></div> <div id="wrapper1"> <div id="wrapper2"> <div id="maincol"> <div id="leftcol">sol kisim</div> <div id="rightcol">sag kisim</div> <div id="centercol">icerik</div> </div> </div> </div> </body> </HTML> |
|
|
|
|
|
|
#9 (permalink) |
|
Üyelik Tarihi: 31.03.2007
Yer: Antalya
Mesaj: 15
|
Re: Css & Div ile 3 blok
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <head> <style> #baslik{width:100%;} #sol{width:20%;float:left;} #sag{width:20%;float:right;} #icerik{width:auto;margin:0 21%;} </style> <body> <div id="baslik">baslik</div> <div id="sol">sol</div> <div id="sag">sag</div> <div id="icerik">icerik</div> </body> </HTML> En iyisi makale http://alistapart.com/articles/holygrail |
|
|
|
Zoque'a hoşgeldiniz!