Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Ostylowanie nagłówka
rav1989
post 30.05.2012, 20:05:13
Post #1





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 5.07.2007

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


Witam,

Potrzebuję ostylować nagłówki h1-h6 w konkretny sposób.
Mniej więcej tak:
Tylko w samym CSS.

Czy mógłby mi ktoś napisać jak to zrobić ew. jeszcze lepiej pokazał (nie znam się za bardzo na CSS).

Wymyśliłem coś takiego ale dalej utknąłem: http://jsbin.com/ekexid/5/edit#source

Pozdrawiam

Ten post edytował rav1989 30.05.2012, 21:10:31
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
hubson87
post 1.06.2012, 13:32:54
Post #2





Grupa: Zarejestrowani
Postów: 83
Pomógł: 8
Dołączył: 9.02.2011
Skąd: Wrocław

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


Trochę zakombinowałeś z css'ami:D

Spróbuj tak:

  1. <title>Horizontal Line Behind a Heading with CSS</title>
  2. <!--[if IE]>
  3. <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  4. <![endif]-->
  5. .menu{
  6. width:100%;
  7. height:40px;
  8. border-bottom:1px solid #000;
  9. }
  10. .menu h1{
  11.  
  12. display:inline-block;
  13. margin:0 0 0 20px;
  14. height:100%;
  15. border: 1px solid #000;
  16. border-radius: 15px 15px 0 0;
  17. padding:0 6px;
  18. background:#fff;
  19. border-bottom:none;
  20. }
  21.  
  22. </head>
  23. <body>
  24. <div>
  25. <div class="menu">
  26. <h1>Heading Number Four</h1>
  27. </div>
  28. <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
  29.  
  30. <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
  31.  
  32. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
  33.  
  34. </div>
  35.  
  36. </body>
  37. </html>
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 28.06.2025 - 23:41