Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pasek przypominający o logowaniu, help
matisxd123
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 1.03.2011

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


Witam chciałbym zrobić taki pasek jak tutaj http://www.se24.wxv.pl/index.htm
chodzi mi o: http://img811.imageshack.us/img811/9008/obrazekpw.jpg
lecz nie umiem go odpowiednie z konfigurować.

oto kod:
Kod
begin_logged_out
<div id="okno">
<div id="info">
<a href="profile.php?mode=register"><center>Witaj, nie jestes jeszcze zalogowany. Zaloguj sie by moc w pelni korzystac ze strony. Jezeli nie masz jeszcze konta kliknij tutaj.</center></a>
</div></div>

<style>

#okno {
overflow-x: hidden;
width: 100%;
z-index: 1000;
font-size: 11px;
font-weight: bold;
position: fixed;
cursor: pointer;
}

#info a, #info a:link, #info a:visited, #info a:active {
display: block;
overflow-x: hidden;
width: 100%;
clear: both;
color: #000000;
background: #FFFFFF;
padding: 5px;
text-decoration: none;
position: fixed;
left: 0px;
top: 0px;
}

#info a:hover {
color: #ffffff;
background: #000000;
position: fixed;
left: 0px;
top: 0px;
}

</style>
end_logged_out

Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
kokers
post
Post #2





Grupa: Zarejestrowani
Postów: 154
Pomógł: 33
Dołączył: 18.10.2010
Skąd: Katowice

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


czy masz to gdzies online?


--------------------
‎"Sometimes you're gonna get odd error syntax, unexpected T_PAAMAYIM_NEKUDOTAYIM and you're like, what in the world is that thing i have no idea what went wrong in my code. In english that error means you screwed up the references to an object" Kevin Skoglund
Drobna prywata: Ależ nie nie, nie zamierzam zmieniać płci w najbliższym czasie, więc zwracanie się do mnie per Pan jest odrobinkę nietrafione.
Go to the top of the page
+Quote Post
matisxd123
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 1.03.2011

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


Nie mam, chodzi mi tylko aby ten kwadracik na środku był tak jak na screenie.
Go to the top of the page
+Quote Post
ylk
post
Post #4





Grupa: Zarejestrowani
Postów: 194
Pomógł: 26
Dołączył: 9.01.2011
Skąd: /dev/null

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


Cytat(matisxd123 @ 1.03.2011, 21:07:41 ) *
Nie mam, chodzi mi tylko aby ten kwadracik na środku był tak jak na screenie.

CSS position:fixed

Jak go wypozycjonować na środku musisz googlać smile.gif
Go to the top of the page
+Quote Post
modern-web
post
Post #5





Grupa: Zarejestrowani
Postów: 763
Pomógł: 117
Dołączył: 15.03.2010
Skąd: void

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


Na początku pliku CSS dodaj taki kod:

  1. * { margin : 0px auto; }


Pozdro!


--------------------
Pomogłem? Kliknij `Pomógł`. To nic nie kosztuje, a mnie usatysfakcjonuje! ;)
Go to the top of the page
+Quote Post
matisxd123
post
Post #6





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 1.03.2011

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


Cytat(modern-web @ 1.03.2011, 21:23:13 ) *
Na początku pliku CSS dodaj taki kod:

  1. * { margin : 0px auto; }


Pozdro!


Albo coś źle robię albo nie działa.
Go to the top of the page
+Quote Post
kokers
post
Post #7





Grupa: Zarejestrowani
Postów: 154
Pomógł: 33
Dołączył: 18.10.2010
Skąd: Katowice

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


Cytat
Albo coś źle robię albo nie działa.


coś źle na pewno. może tak napisz co konkretnie nie działa?


--------------------
‎"Sometimes you're gonna get odd error syntax, unexpected T_PAAMAYIM_NEKUDOTAYIM and you're like, what in the world is that thing i have no idea what went wrong in my code. In english that error means you screwed up the references to an object" Kevin Skoglund
Drobna prywata: Ależ nie nie, nie zamierzam zmieniać płci w najbliższym czasie, więc zwracanie się do mnie per Pan jest odrobinkę nietrafione.
Go to the top of the page
+Quote Post
modern-web
post
Post #8





Grupa: Zarejestrowani
Postów: 763
Pomógł: 117
Dołączył: 15.03.2010
Skąd: void

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


Wklepałeś to w tym miejscu (patrz **********) ?

  1. <div id="info">
  2. <a href="profile.php?mode=register"><center>Witaj, nie jestes jeszcze zalogowany. Zaloguj sie by moc w pelni korzystac ze strony. Jezeli nie masz jeszcze konta kliknij tutaj.</center></a>
  3. </div></div>
  4.  
  5.  
  6. **********
  7.  
  8. #okno {
  9. overflow-x: hidden;
  10. width: 100%;
  11. z-index: 1000;


--------------------
Pomogłem? Kliknij `Pomógł`. To nic nie kosztuje, a mnie usatysfakcjonuje! ;)
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: 19.08.2025 - 11:02