Tworzę stronę www, używam ccs oczywiście. Póki co mam menu z lewej strony i tekst po środku. Po przeładowaniu/odświeżeniu strony np F5 tekst po środku potrafi wleźć na menu - dosłownie. Nie zawsze tak jest, ale co któreś odświeżenie, tym bardziej jak szybko odświeżam. Wygląda to tak: http://zapodaj.net/f10518ea42423.gif.html
Kod wygląda tak:
<?xml version="1.1" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W#C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11//Dtd/xhtml11.11dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="pl" /> <link href="style.css" rel="stylesheet" type="text/css" /> <body> <div id="pole1"> <div id="pole2"> <div id="pole3"> </div> <div id="menu"> <ul style="color:red"type="square"> </ul> </div> <div id="srodek"> <div class="box"> Dystrybucja:ulotek, gazetek reklamowych </body> </head> </html>
A ccs:
@charset "UTF-8"; *#pole1 { position: absolute; top: 0px; left: 0px; } #pole2 { position: absolute; top: 90px; left: 350px; } #pole3 { position: absolute; top: 290px; left: 350px; } #menu { position: relative; top: 80px; left: 57px; width: 495px; height: 36px; font-size: 18px; font-family:Arial; line-height:203%; } a { color: red; text-decoration: none; } #srodek { position: static; padding: 175 100 90 410; width:550px; color:red; font-size:18px; }
Co robię nie tak? Gdzie jest błąd?
