Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][CSS]Ustawienie kontenerow.
cykcykacz
post 18.07.2013, 08:05:21
Post #1





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

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


Hej,
mam taki problemik:
  1. <div id="page">
  2. <div id="box">
  3. </div>
  4. <div id="box2">
  5. </div>
  6. </div>


I jak zrobić żeby "box2" był przed "box"?

A i css:
  1. #page {width:600px;height:auto;}
  2. #box {width:600px;height:20px;}
  3. #box2 {width:600px;height:20px;}
Go to the top of the page
+Quote Post
b4rt3kk
post 18.07.2013, 08:10:31
Post #2





Grupa: Zarejestrowani
Postów: 1 933
Pomógł: 460
Dołączył: 2.04.2010
Skąd: Lublin

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


Hmm?

  1. <div id="page">
  2. <div id="box2">
  3. </div>
  4. <div id="box">
  5. </div>
  6. </div>


--------------------
Jeśli pomogłem, kliknij proszę 'pomógł'. Dzięki.
Go to the top of the page
+Quote Post
cykcykacz
post 18.07.2013, 08:14:55
Post #3





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

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


Hehehe,
może źle sformuowałem pytanie ale przy takim html jak to ustawić css?
Go to the top of the page
+Quote Post
b4rt3kk
post 18.07.2013, 08:21:11
Post #4





Grupa: Zarejestrowani
Postów: 1 933
Pomógł: 460
Dołączył: 2.04.2010
Skąd: Lublin

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


Zapewne chodzi o SEO? Możesz się bawić w position: relative lub użyć JS. Przestawienie kolejności tak jak napisałem wyżej odpada?


--------------------
Jeśli pomogłem, kliknij proszę 'pomógł'. Dzięki.
Go to the top of the page
+Quote Post
cykcykacz
post 18.07.2013, 08:32:26
Post #5





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

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


Mam:
  1. #page {width:800px;height:auto;margin:0 auto;}
  2. #box {background-color: pink;
  3. height: 20px;
  4. position: relative;
  5. top: 20px;
  6. width: 800px;
  7. z-index: 10;}
  8. #box2 {background-color: orange;
  9. height: 20px;
  10. position: relative;
  11. top: -20px;
  12. width: 800px;}
Go to the top of the page
+Quote Post

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: 16.06.2025 - 18:37