#CSS guidance

1 messages · Page 1 of 1 (latest)

slim kite
#

It would he much better and easier to simply ask your questions here and show everything here. People usually don't offer help if they don't know what the question is about. With a question like that, chances are you won't get any answer.

runic juniper
#

Like a picture ok?

slim kite
#

So, explain what you're trying to do, what you have tried, what isn't working or you don't understand, etc. Give details.

runic juniper
#

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?

shut sluice
#

do you know what is a class selector?

runic juniper
runic juniper
shut sluice
#

oh

#

html elements can have multiple classes

runic juniper
#

Can you guide me through like an example

shut sluice
#

yes

runic juniper
shut sluice
#

if you have an element with class="a b" then your element is part of class a and b

runic juniper
#

okay

shut sluice
#

so if you dont want to affect the class red, then create a new class for right align

runic juniper
#

So would it be new element

#

Like <q class =

shut sluice
#

You already have the element

#

so it will not be a new element

#

just a second class added to it

runic juniper
#

Below the cite?

shut sluice
#

On the element you want to allign

runic juniper
#

Okay so like

#

Something like this <div> class= "" right align </div>

#

Yeah I'm completely confused sorry

shut sluice
#

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
#

so within those quotes should there be something?

#

I mean ""

shut sluice
#

if you want to give a class to your element, then yes you need to have it inside the ""

runic juniper
#

Will that help with right align ment

#

I read it I just can't grasp the idea around it

shut sluice
#

this will explain better then I can do

runic juniper
#

Ok once I find it out. Can I use it for the poem just change it center same with miscellaneous

shut sluice
#

sure

#

you can use class for anything, you can also use id and element

#

which one to use depends on what you need