#CSS guidance
1 messages · Page 1 of 1 (latest)
Like a picture ok?
So, explain what you're trying to do, what you have tried, what isn't working or you don't understand, etc. Give details.
So I just started learning coding and I'm struggling with alignments
The quote in red I would like it to be aligned to right but I don't even know how to. My professor mentioned class selectors I just don't know how to use it in this context
hello. Is this good enough for an explanation?
What do you mean by you dont know how to use it in this context?
do you know what is a class selector?
I think it's .class value thing
I'm not sure how to text align it without disturbing the class selector
Can you guide me through like an example
yes
Yes
if you have an element with class="a b" then your element is part of class a and b
okay
so if you dont want to affect the class red, then create a new class for right align
You already have the element
so it will not be a new element
just a second class added to it
Below the cite?
On the element you want to allign
Okay so like
Something like this <div> class= "" right align </div>
Yeah I'm completely confused sorry
All attributes of a html element is inside the <> of the declaration of the element
class is an attribute
" are used to delimiter text and attributes values
<div class="a b"> </div>
@runic juniper look at the example I just did
if you want to give a class to your element, then yes you need to have it inside the ""
Will that help with right align ment
I read it I just can't grasp the idea around it
this will explain better then I can do
Ok once I find it out. Can I use it for the poem just change it center same with miscellaneous