Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [html][css] Nowy wiersz diva
poxrimex
post
Post #1





Grupa: Zarejestrowani
Postów: 368
Pomógł: 2
Dołączył: 23.09.2007

Ostrzeżenie: (60%)
XXX--


Witam!

Mam 2 problemy:

1.
Div powinien być ustawiony tak:
| Login: | POLE FORMULARZA
a jest ustawiony tak
| Login
| POLE FORMULARZA

OTO HTML:

  1. <div class="naglowek">Login:</div>
  2. <div class="naglowek2"><input type="text" name="login"/></div>


Css:
  1. div.naglowek
  2. {
  3. text-align: left;
  4. width: 800px;
  5. color: #5c5c5c;
  6. border-left-color: #b3dd1d;
  7. border-left-width: 5px;
  8. border-left-style: solid;
  9. font-weight: bold;
  10. padding-left: 5px;
  11. }
  12.  
  13. div.naglowek2
  14. {
  15. width: 800px;
  16. color: #5c5c5c;
  17. border-left-color: #ffa800;
  18. border-left-width: 5px;
  19. border-left-style: solid;
  20. font-weight: bold;
  21. padding-left: 5px;
  22. }


a 2 sprawa:

również z tym css i html
Jak zrobię diva nagłówek
to on wygląda inaczej w IE
http://www.fotosik.pl/pokaz_obrazek/038df0dccf13d71f.html
http://www.fotosik.pl/pokaz_obrazek/038df0dccf13d71f.html

Ten post edytował poxrimex 11.02.2008, 14:43:07
Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




ad1)
zainteresuj sie takim cudem jak: float w css
Go to the top of the page
+Quote Post
poxrimex
post
Post #3





Grupa: Zarejestrowani
Postów: 368
Pomógł: 2
Dołączył: 23.09.2007

Ostrzeżenie: (60%)
XXX--


Nie, z float już próbowałem i nic  ztego
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




To pokaz jak probowales bo zapewne robiles to źle. Do tego co chcesz osiągnać słuzy właśnie float.
Go to the top of the page
+Quote Post
poxrimex
post
Post #5





Grupa: Zarejestrowani
Postów: 368
Pomógł: 2
Dołączył: 23.09.2007

Ostrzeżenie: (60%)
XXX--


Jedyne co dodałem do diva nagłówek2
to:
  1. float: left;
Go to the top of the page
+Quote Post
remik09
post
Post #6





Grupa: Zarejestrowani
Postów: 102
Pomógł: 10
Dołączył: 25.12.2005
Skąd: Ruda Śląska

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


Kod
<div>
<div style=" float: left;">Login</div><div><input type="text" name="login"/></div>
</div>


mozesz sobie to wstawic do css
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 16.09.2025 - 02:37