properties of the attribute "style" (inline) |
properties of the attribute "style" (inline) |
pinklemon |
Oct 7 2014, 06:32 AM
Post
#1
|
Advanced Member Group: Members Posts: 140 Joined: 29-June 14 Member No.: 21,166 |
Hello!
Curious: if style is HTML attribute, (inline), does it have any more properties then: color, background-color, font-family, font-size, text-alignment? Are values for text-alignment in that example just 3: left, right, center? Many thanks!!! |
Christian J |
Oct 7 2014, 07:03 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Hello! Curious: if style is HTML attribute, (inline), does it have any more properties then: color, background-color, font-family, font-size, text-alignment? You can use all ordinary CSS properties as inline styles, but not pseudo-classes and pseudo-elements (e.g. :hover). QUOTE Are values for text-alignment in that example just 3: left, right, center? You should be able to use any text-align value. |
Frederiek |
Oct 7 2014, 08:21 AM
Post
#3
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
For text-align, there are 4 possible values, see http://htmlhelp.com/reference/css/text/text-align.html .
|
Christian J |
Oct 7 2014, 12:08 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Even more in CSS3, but I haven't tested: http://www.w3.org/TR/css3-text/#text-align
|
Frederiek |
Oct 8 2014, 04:56 AM
Post
#5
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
I never even had heard about those.
|
Lo-Fi Version | Time is now: 26th April 2024 - 07:49 AM |