Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][HTML]Wykres słupkowy i problem z wysokościa.
--Początkujący--
post
Post #1





Goście







Mam taki wykres:
(IMG:http://iv.pl/images/46564388325891496365.png)
Jak widać jest problem, jak dodam style="height: 75px;" albo style="height: 50%;" do diva to mi ucina go od dołu (IMG:style_emoticons/default/biggrin.gif)

A chciałbym, żeby odcinało górę. Jak to otrzymać? No i każdy wykres musi zaczynać się od tej najniższej kreski.

Dodaje kod:
  1. <div id="status_graph">
  2. <div id="channel" title="Channel 1: 2121 graczy online" style="height: 65px;"></div>
  3. <div id="channel" title="Channel 2: 2000 graczy online" style=""></div>
  4. <div id="channel" title="Channel 3: 1921 graczy online" style=""></div>
  5. <div id="channel" title="Channel 4: 2021 graczy online" style=""></div>
  6. </div>

  1. #status_graph {
  2. background: url('img/status_graph.png') no-repeat;
  3. width: 245px;
  4. height: 118px;
  5. margin-left: 77px;
  6. margin-top: 7px;
  7. overflow: auto;
  8. }
  9.  
  10. #channel{
  11. background: url('img/channel.png') no-repeat;
  12. width: 29px;
  13. height: 100px;
  14. margin-top: 17px;
  15. margin-left: 25px;
  16. float: left;
  17. }

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





Grupa: Opiekunowie
Postów: 3 855
Pomógł: 317
Dołączył: 4.01.2005
Skąd: że




Kombinuj z:
  1. position: absolute;
  2. bottom: 0;
Go to the top of the page
+Quote Post
--Początkujący--
post
Post #3





Goście







Nie wiem jak sobie z tym poradzić, chyba overflow: auto; koliduje z position: absolute;

Kombinuje i nic mi nie wychodzi ;/
Go to the top of the page
+Quote Post
PrinceOfPersia
post
Post #4





Grupa: Zarejestrowani
Postów: 717
Pomógł: 120
Dołączył: 18.04.2009

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


jeszcze vertical-align zamiast możesz pobróbować (bo wywaleniu position:absolute)
Go to the top of the page
+Quote Post
--Początkujący--
post
Post #5





Goście







background-position pomogło ; )
Go to the top of the page
+Quote Post
Kshyhoo
post
Post #6





Grupa: Opiekunowie
Postów: 3 855
Pomógł: 317
Dołączył: 4.01.2005
Skąd: że




http://jsfiddle.net/m44LF/1/
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: 6.10.2025 - 21:53