Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]układ storny nie działa:/
robos85
post
Post #1





Grupa: Zarejestrowani
Postów: 466
Pomógł: 11
Dołączył: 21.09.2006
Skąd: Szczecin

Ostrzeżenie: (0%)
-----


Mam taki kod html:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  3. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  4. <meta name="Description" content=" [wstaw tu opis strony] " />
  5. <meta name="Keywords" content=" [wstaw tu slowa kluczowe] " />
  6. <meta name="Author" content=" [dane autora] " />
  7. <title> [tytuł strony] </title>
  8. <link rel="stylesheet" href="css/style.css" type="text/css" />
  9. </head>
  10.  
  11. <div id="main">
  12.  
  13.  
  14. <div id="head">
  15. <!--[if IE]><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="784" height="359"><script>/*<![endif]-->
  16. <object type="application/x-shockwave-flash" data="head.swf" width="784" height="359"><script type="text/javascript">/**/</script>
  17. <param name="movie" value="head.swf" />
  18. <!-- tutaj wstaw alternatywną treść - tj. coś co ma się pokazać gdy flash nie działa -->
  19. </object>
  20. </div>
  21.  
  22. <div id="content">
  23.  
  24. <div id="cont1">
  25. <div id="lmenu">
  26. <!-- BlaTek Satay Appendix: http://blatek.co.uk/blateksatay/ -->
  27. <!--[if IE]><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="201" height="576"><script>/*<![endif]-->
  28. <object type="application/x-shockwave-flash" data="leftmenu2.swf" width="201" height="576"><script type="text/javascript">/**/</script>
  29. <param name="movie" value="leftmenu2.swf" />
  30. <!-- Zainstaluj FLASH -->
  31. </object>
  32. </div>
  33. <div id="smenu">
  34. <img src="img/smenu.jpg" style="position: relative; top: 263px; left: -1px;" alt="" />
  35. </div>
  36. </div>
  37. <div id="cont">
  38. <div id="cont_main">
  39. lkwsjfkl
  40. </div>
  41. <div id="cont_pas">
  42. PASPASPAS
  43. </div>
  44. </div>
  45.  
  46. </div>
  47.  
  48.  
  49.  
  50. </div>
  51.  
  52. </body>
  53. </html>

i CSS:
Kod
body {
background-color: #b8bcbf;
}
#main {
margin: 0 auto;
width: 800px;
background-color: #bfc6ca;
}
#head {
margin: 0 auto;
width: 784px;
height: 359px;
padding-top: 11px;
clear: both;
}
#content {
width: 783px;
margin-left: 8px;
background-color: #a8b1b6;
overflow:hidden;
}
#cont1{
width: 248px;
float: left;
}
#lmenu {
width: 202px;
float: left;
}
#smenu {
width: 46px;
float: left;
}
#cont{
float: left;
display: block;
width: 535px;
}
#cont_main{
width: 524px;
height: 247px;
margin-top: 5px;
background-color: #ffffff;
clear: both;
}
#cont_pas{
width: 535px;
height: 198px;
display: block;
background-image: url(img/menuk.jpg);
margin-top: 10px;
}


i nie pokazuje mi tła diva cont-pas w innych divach też nie działa:/
Jak to naprawić?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 11:36