Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> czy można zafixowac diva tylko wzgledem gornej krawedzi?
mrok
post 1.06.2008, 18:12:51
Post #1





Grupa: Zarejestrowani
Postów: 258
Pomógł: 17
Dołączył: 22.05.2007

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


Witam


Próbował ktoś może wygenerować coś takiego jak tutaj:
http://www.free-css-templates.com/preview/WhiteGray/
konkretnie chodzi mi o ten górny pasek z napisem FreeCSSTemplates

W powyższym przykładzie zrobione jest to na ramkach, można też na iframie, ale czy da się to zrobić tylko w oparciu o samego cssa?

Próbowałem tak
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  5. <meta http-equiv="Content-Language" content="pl">
  6. </head>
  7.  
  8.  
  9.  
  10. <div style="width: 1600px; height: 120px; background-color: red; position:fixed;">
  11. test<br>
  12. test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
  13. </div>
  14. <div style="padding-top:200px;width: 1600px;">
  15. 1<br>
  16. 2<br>
  17. 3<br>
  18. 4<br>
  19. 5<br>
  20. 6<br>
  21. 7<br>
  22. 8<br>
  23. 9<br>
  24. 0<br>
  25. 1<br>
  26. 2<br>
  27. 3<br>
  28. 4<br>
  29. 5<br>
  30. 67<br>
  31. 8<br>
  32. 9<br>
  33. 1<br>
  34. 2<br>
  35. 3<br>
  36. 4<br>
  37. 5<br>
  38. 6<br>
  39. 7<br>
  40. 8<br>
  41. 9<br>
  42. 0<br>
  43. 1<br>
  44. 2<br>
  45. 3<br>
  46. 4<br>
  47. 5<br>
  48. 67<br>
  49. 8<br>
  50. 9<br>
  51. test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
  52. </div>
  53.  
  54.  
  55.  
  56. </body>
  57. </html>


i jeśli chodzi o scrolla pionowego to jest oki, natomiast gorzej z poziomym (ta szerokość 1600px to nie żart).

Ogólnie staram się ustawic diva na fix względem top okna przeglądarki, natomiast zmiennie względem lewego boku (aby dało się go przesówać)?
Wie ktoś czy da się??


Pozdrawiam


--------------------
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 Wersja Lo-Fi Aktualny czas: 13.08.2025 - 23:24