Forum'da ara:
Ara


« Önceki başlık :: Sonraki başlık »  
Yazar Mesaj
Mesaj16.07.2009, 19:09 (UTC)    
Mesaj konusu: Yardım Lazım,Sitem Kötü Gözüküyor,CSS Bilen İçeri Lütfen

ARkadaşlar dreamwaever da kendime ait olsun diye basitten bir site tasarlamaya çalıştım.Siteme uyguladığımda sitem kötü gözüküyordu.Kodlarım bunlar,acaba bir eksik ya da fazla mı var?Yardımcı Olursanız Sevinirim.


Sitem

www.codetown.tr.gg


Kodlar

Html
Alıntı:
<body class="thrColFix">
<table width="100%" border="0" height="40" cellspacing="0" cellpadding="0">
<tr>
<th scope="col">&nbsp;</th>
</tr>
</table>
<div id="container">
<table width="100%" height="235
" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col"><center>
<img src="http://img.webme.com/pic/c/codetown/header3.png" width="761" height="215" />
</center></th>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><center><ul id="menu" >
<li><a href="www.codetown.tr.gg">Anasayfa</a></li>
<li><a href="#">Haberler</a>
<ul>
<li><a href="#">Şirket Haberleri </a></li>
<li><a href="#">Yurt içi Haberleri </a></li>
<li><a href="#">Yurt dışı Haberleri</a></li>
</ul>
</li>
<li><a href="#">Ürünler</a>
<ul>
<li><a href="#">Tencere</a></li>
<li><a href="#">Tava</a></li>
<li><a href="#">Ütü</a></li>
<li><a href="#">Tost Makinesi </a></li>
<li><a href="#">El Süpürgesi </a></li>
</ul>
</li>
</ul>
</center></th>
</tr>
</table>
<div id="sidebar1">
<h3>Sidebar1</h3>
<p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the left side of the #mainContent div if it will always contain more content. </p>
<p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. </p>
<!-- end #sidebar1 --></div>

<div id="mainContent">
<h1> Main Content </h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. </p>
<h2>H2 level heading </h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
<!-- end #mainContent --></div>
<p>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
<br class="clearfloat" />
</p>
<!-- end #container --></div>
<table width="100%" height="40
" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col">&nbsp;</th>
</tr>
</table>

</body>
</html>


CSS

Alıntı:

body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing

browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left

aligned default in the #container selector */
color: #444;
background-color: #333;
font-family: ".8em Arial", Sans-Serif;
font-size: 11pt;
}
.thrColFix #container {
width: 780px;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left;
background-color: #FFF;
}
.thrColFix #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 200px;
background-color: #CFDDFF;
margin-top: 25px;
background: #CFDDFF;
}
h3 {
color: #FFF;
background: #6587E0 url(http://img.webme.com/pic/c/codetown/bg.jpg);
margin-top: 0px;
font-size: 1em;
height: 24px;
line-height: 24px;
padding-left: 10px;
}
.thrColFix #mainContent {
margin-left: 225px;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the

element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the

close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
ul#menu, ul#menu ul {
list-style: none;
margin: 0;
padding: 0;
}
ul#menu li {
float: left;
position: relative;
width: 150px;
}
ul#menu li ul {
display: none;
position: absolute;
top: 19px; /* yukseklik 15px + sonradan eklenecek paddingler 4px toplam 19px */
left: 0;
}
ul#menu li > ul {
top: auto;
left: auto;
}
ul#menu li a {
font: bold 11px arial, helvetica, sans-serif;
display: block;
margin: 0;
padding: 3px;
color: #000;
background: #EFEFEF;
text-decoration: none;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #BBB;
border-right-color: #000;
border-bottom-color: #555;
border-left-color: #AAA;
}
.thrColFix #container table tr th center #menu li ul li a {
background: #EFEFEF;
border-top-color: #D2D2D2;
border-right-color: #D2D2D2;
border-bottom-color: #D2D2D2;
border-left-color: #D2D2D2;
}
ul#menu li a:hover {
color: #00F;
background-color: #EFEFEF;
font-weight: bold;
}
ul#menu li:hover ul {
display: block;
}
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;
ul#menu li:hover ul, ul#menu li.over ul{
display: block;
}

-->
</style><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFix #sidebar1 { width: 180px; }
.thrColFix #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFix #sidebar2, .thrColFix #sidebar1 { padding-top: 30px; }
.thrColFix #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
Mesaj18.07.2009, 07:18 (UTC)    
Mesaj konusu:

Kimse cevap yazmayınca ben de temamı değiştirdim arkadaşlar,baktığınız ve okuduğunuz yine de teşekkürler
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu