webForumDet fria alternativet

Text försvinner css

0 svar · 225 visningar · startad av berntg

berntgMedlem sedan feb. 200187 inlägg
#1

Försöker göra en webbplats med CSS alltså utan tabeller. Sidorna skall vara flexibla, ändras efter webbläsarfönstret.
På denna sida har jag en större bild och under skall mindre bilder som länkas till större finnas.

Varför försvinner texten då webbläsarfönstret maximeras?
Finner ingen lösning. Tar jag bort Clear på containern blir det inte bra heller.

Koder:
Sidan:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Bernts webbplats - Statyn vid Odenhallen</title>
<link rel="STYLESHEET" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
</head>
<body>
<div id="sidyta">
<!-- sidhuvud -->
<div id="sidhuvud">
<img src="../../bilder/logo.gif" width="231" height="100" alt="" style="border : none;" />
<p><a href="../../index.html" class="../../index.html">Hem</a> | <a href="../barnbarn/index.html" class="nav">Barnbarn</a> | <a href="index.html" class="nav">Foto</a> | <a href="../bildtrix/index.html" class="nav">Bildtrix</a></p>
</div>
<h4 class="toning">Kategori</h4>
<!-- kataloglankar -->
<div id="kataloglankar">
<ul>
<li><a href="../../index.html">Hem</a>
<ul>
<li>» <a href="index.html">Kategori</a>
<ul>
<li>» <strong>Rubrik</strong></li>
</ul></li>
</ul></li>
</ul>
</div>

  	\<h2 style="clear : left;"\>Rubrik\</h2\>
  \<!-- innehall --\>
    \<p\>\<img src="bilder/staty_0307/staty_small.jpg" width="250" height="333" alt="Statyn vid Odenhallen" style="float : left;" /\>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation ulliam corper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem veleum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum lunombro dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.\</p\>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation ulliam corper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem veleum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum lunombro dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
<div class="container" style="clear : left;">
<div class="spacer"> </div>
<div class="float"><img src="bilder/staty_0307/staty_blixt_small.jpg" width="103" height="156" alt="" border="0" /></div>
<div class="float"><img src="bilder/staty_0307/staty_effekt_small.jpg" width="103" height="156" alt="" border="0" /></div>
<div class="float"><img src="bilder/staty_0307/staty_sunrise_small.jpg" width="103" height="156" alt="" border="0" /></div>
<div class="float"><img src="bilder/staty_0307/staty_mask_small.jpg" width="103" height="156" alt="" border="0" /></div>
<div class="spacer"> </div>
</div>

	\<div id="sidfot"\>
		\<hr /\>
		\<p class="mindre"\>
		\<script type=""\>document.write('Copyright &copy; 2003-' +(new Date()).getFullYear());\</script\> \<a href="mailto:namnet@namn.se"\>namn\</a\> 
		\</p\>
	\</div\>
\</div\>

</body>
</html>

css:
H1, H2, H3 {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #ab772d;
margin-bottom : -10px;
background-color : #fff;
}

H4{
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #ab772d;
padding: 2px;
margin-top : 1px;
margin-bottom : 1px;
background-color : transparent;
}

P {
font : normal 0.8em/175% Verdana, Geneva, Arial, Helvetica, sans-serif;
padding-left : 1.5%;
}

BODY {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
margin : 0px;
background-color : #c3a472;
color : #000;
}

A:LINK {
color : #ab772d;
text-decoration : none;
background-color : transparent;
}

A:VISITED {
color : #ab772d;
text-decoration : none;
background-color : transparent;
}

A:HOVER {
background-color : #ab772d;
color : #fff;
text-decoration : none;
}

A:ACTIVE {
background-color : #ab772d;
color : #c3a472;
text-decoration : none;
}

#sidyta {
border : 1px solid #000000;
margin-left : 10%;
margin-right : 10%;
background-color : #ffffff;
padding-top : 5px;
padding-left : 4%;
padding-right : 4%;
color : #000;
}

#sidhuvud {

}

#sidhuvud p {
position: absolute;
top: 100px;
right: 14%;
font-weight : bold;
color : #ab772d;
background-color : transparent;
}

A.nav:LINK {
color : #ab772d;
text-decoration : none;
background-color : transparent;
}

A.nav:VISITED {
color : #ab772d;
text-decoration : none;
background-color : transparent;
}

A.nav:HOVER {
background-color : #ab772d;
color : #fff;
text-decoration : none;
}

A.nav:ACTIVE {
background-color : #ab772d;
color : #c3a472;
text-decoration : none;
}

#sidfot {

}

img {
border : 1px solid #000000;
margin : 10px;
}
#kataloglankar {
font-size : 11px;
font-weight : bold;
color: #ab772d;
background-color: transparent;
padding: 3px 3px 0px 0px;
margin-bottom: 5px;
}

#kataloglankar ul {
margin-left: 0;
padding-left: 0;
display: inline;
border: none;
}

#kataloglankar ul li {
margin-left: 0;
padding-left: 2px;
border: none;
list-style: none;
display: inline;
}

.toning {
background: #ab772d;
width: 100%;
filter: progid:DXImageTransform.Microsoft.gradient (GradientType=1, startColorstr=#FFFFFF, endColorstr=#ab772d);
}

p.uppdat a {
font : bold small Verdana, Geneva, Arial, Helvetica, sans-serif;
text-decoration : underline;
margin-bottom : 0px;
margin-top : 0px;
}

p.uppdat {
font : bold small Verdana, Geneva, Arial, Helvetica, sans-serif;
margin-bottom : 5px;
margin-top : 5px;
}

#sidfot {
text-align : center;
margin : 10px 0px 10px 0px;
}

P.mindre {
font-size : 10px;
line-height : 110%;
margin : 0px;
padding : 0px;
}

HR {
margin-bottom : 0px;
}

.hoger {
float : right;
}

div.float {
float: left;
padding: 10px;

}

div.float p {
text-align: center;
}
div.container {
border: 1px dashed #333;
background-color: #ffe;
}
div.spacer {
clear: both;
}

138 ms totalt · 3 externa anrop · v20260731065814-full.0e50b1ef
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
135 ms — hämta tråd, inlägg och bilagor (db)