Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

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





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

Ostrzeżenie: (60%)
XXX--


Css dla diva:

[/HTML]
#menu
{
float: left;
width: 300px;
text-align: center;
background-color: white;
margin-left: 10;
margin-right: auto;
clear: both;
border-width: 2px;
border-color: #DDDDDD;
border-style: solid;
padding: 0;
margin: 0;
}
[/HTML]

DIV w htmlu:

  1. <div id="menu">
  2. <h2> Menu </h2>
  3. </div>


I problem jest następujący w mozilli trochę daleko od gornego obramowania pojawia się tekst h2 Menu


--------------------



Go to the top of the page
+Quote Post
Daimos
post
Post #2





Grupa: Zarejestrowani
Postów: 1 319
Pomógł: 118
Dołączył: 26.11.2003
Skąd: Lublin

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


dodaj do kodu CSS:
  1. h2{ margin:0;padding:0;}


ps. masz bledy
na poczatku dajesz margin-left: 10 i margin-right: auto, a na koncu deklarujesz wszystkie marginesy na 0

  1. #menu
  2. {
  3. float: left;
  4. width: 300px;
  5. text-align: center;
  6. background-color: white;
  7. ---> margin-left: 10;
  8. ---> margin-right: auto;
  9. clear: both;
  10. border-width: 2px;
  11. border-color: #DDDDDD;
  12. border-style: solid;
  13. padding: 0;
  14. ----> margin: 0;
  15. }


a ten kod:
  1. border-width: 2px;
  2. border-color: #DDDDDD;
  3. border-style: solid;

mozesz rownie dobrze zapisac tak:
  1. border: 2px solid #DDDDDD;


Ten post edytował my salsa 18.01.2008, 14:57:27


--------------------
scriptun.com. Startup z poradnikami do gier ttp.zone i ttpzone.pl
Go to the top of the page
+Quote Post
Nekro
post
Post #3





Grupa: Zarejestrowani
Postów: 36
Pomógł: 2
Dołączył: 3.01.2007
Skąd: Żory

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


Potestuj to:
- overflow: hidden;
- display: block;
dla div`a


--------------------
Angielski dla specjalistów: www.anglobiznes.pl
Wydawnictwo językowe: www.eprofess.pl
Go to the top of the page
+Quote Post
Daimos
post
Post #4





Grupa: Zarejestrowani
Postów: 1 319
Pomógł: 118
Dołączył: 26.11.2003
Skąd: Lublin

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


Nekro autor tematu napisal, ze napis jest nizej niz byc powinien
co ma do tego overflow i display?

Ten post edytował my salsa 18.01.2008, 15:01:12


--------------------
scriptun.com. Startup z poradnikami do gier ttp.zone i ttpzone.pl
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--


My salsa dzięki za pomoc, już Twój pierwszy post pomógł biggrin.gif


--------------------



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 Aktualny czas: 21.08.2025 - 01:55