My layout not fitting in my webpage

Hi @Erik_J, yes that’s what we covered so far plus padding, Id, classes, font-size, text-decoration, text-style, clear, as what the instructor said she want us to get familiar with how to use these selectors
still not cover flex and grid as i don’t know what this things are.
pardon me i didn’t understand your question about the inappropriate class name? do you mean the classes in the HTML code or CSS code ?

1 Like

Thank you @RyanReese :blush:

Yes, naming should rather be what the elements are in the page, not what properties they happen to have at this paticular time.

Like @TechnoBear and @RyanReese and other said already, we are a mix but we are all learning. :slight_smile:

I like to point to a thread not that long ago as an example we all learned from:

:grinning:

1 Like

Computer science in 12th class, that’s really Amazing

I think there may be some confusion with terminology. Maybe this will help?

/*
selector { 
  property: value; 
} 
*/
div.classvalue { 
  color: #A499C8; 
} 
<!-- element attribute="value" --> 
<div class="classvalue">Text</div>

The property and value lines comprise a CSS rule.

To be clear, and please correct me where I’m wrong:

  • you can not modify the HTML by adding, removing, or in other ways modify the elements
  • you are limited in what CSS properties you may use
  • you have at least some freedom to use selectors as you see fit
  • you can add (id and class) attributes and values to the HTML elements

What I am unsure of is to what extent you are limited in what kinds of selectors you can use. eg. type, class, id, combinators, pseudos, etc.

2 Likes

Hi, @Mittineague, Thank you for your reply and trying to understand to help, regarding to my assignment yes you are right on those two points:

  • you can not modify the HTML by adding, removing, or in other ways modify the elements
  • you are limited in what CSS properties you may use

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.