Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Inline CSS styles
Forum PHP.pl > Forum > Po stronie przeglądarki > CSS
Yacho
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
patigo
Nie wiem o co chodzi ale u mnie pod firefox i ie działa bez problemu a na dodatek wc3 nie stawia problemów smile.gif
Kill3R
kod dziala ale zrobiles jeden blad

jak dajesz

grubosc obramowania wieksza niz 0 to podawaj jednostki np px

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


tylko tak
  1. <div style="background-color: White; border: 1px solid #000000">tekst tekst</div>
  2. </body>
  3. </html>


powinno sie uzywac malych liter w znacznikach html
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.