The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> properties of the attribute "style" (inline)
pinklemon
post 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!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 7 2014, 07:03 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pinklemon @ Oct 7 2014, 01:32 PM) *

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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post 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 .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 07:49 AM