Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Inline CSS styles, Znowu ja vs W3C
Yacho
post 2.12.2005, 23:21:00
Post #1





Grupa: Zarejestrowani
Postów: 148
Pomógł: 0
Dołączył: 16.06.2003

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


w CSS howto czytamy :

Cytat
An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly, such as when a style is to be applied to a single occurrence of an element.

To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph:

  1. <p style="color: sienna; margin-left: 20px">
  2. This is a paragraph
  3. </p>


Moglby mnie wiec ktos oswiecic czemu kod :

  1. <div style="background-color: White; border: 1 solid #000000">tekst tekst</div>
  2. </BODY>
  3. </HTML>


Najzwyczajniej mi nie dziala - testowano na Opera 8 FF 1.5 i IE


--------------------
-=Yacho=-

nospor -> trzymaj sie i nie dajcie sie !
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: 5.07.2025 - 16:44