Thank you for the explanation.
>
>You can't ignore the . - that's a CSS directive that tells the CSS parser that the **declaration** is a class.
>
>. = CSS class
>[] = Element Attribute
># = ID
>no prefix = Element
>
>for example.
>
>The last item is key - because elements don't take a prefix they are a special case.
>
>So in CSS:
>
>
>div { ... }
>.my-class { ... }
>*[data-id] { ... }
>#MyControl
>
>
>
>All select the following element:
>
>
><div id="MyControl" data-id="3421" class="myclass someotherclass" >Content</div>
>
>
>
>As to CSS classes: You define them with a `.` but you use them without.
>
>+++ Rick ---
>
>
>
>
>>>>Hi,
>>>>When I read Bootstrap 4 documentation, very often a class name has a prefix period (.). For example, .btn-group-toggle or .d-none and so on. What is the meaning of the period (.)? When I use classes in the HTML5 code, I don't think I enter them. For example, I could say
Why, then, in the docs they use this period?
>>>
>>>means you need to add this string in the class HTML attribute; eg. class="btn-group-toggle another-class"
>>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only