Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is . in on-line documentation
Message
General information
Forum:
Bootstrap
Category:
Documentation
Miscellaneous
Thread ID:
01659513
Message ID:
01659587
Views:
50
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
Map
View

Click here to load this message in the networking platform