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

Posty w temacie
- -Początkujący-   [CSS][HTML]Wykres słupkowy i problem z wysokościa.   1.05.2014, 21:13:54
- - Kshyhoo   Kombinuj z: [CSS] pobierz, plaintext position: abs...   1.05.2014, 21:28:19
- - -Początkujący-   Nie wiem jak sobie z tym poradzić, chyba overflow:...   1.05.2014, 22:00:43
- - PrinceOfPersia   jeszcze vertical-align zamiast możesz pobróbować (...   1.05.2014, 22:08:17
- - -Początkujący-   background-position pomogło ; )   1.05.2014, 22:19:45
- - Kshyhoo   http://jsfiddle.net/m44LF/1/   1.05.2014, 22:25:47


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 - 20:10