Grouping Selectors.
Okay as I start this page I do not know what to expect from grouping selectors. Now AS this page continues I am pretty sure that the page will Look how the CSS is Making it look. I know that the H1 Header will already be formatted by the h1 Selector the paragraph will be formatted using the p selector. I am also pretty sure that if I put it in a div then the Div will be formatted to the CSS definitions set for it. so Now onto the Episode of Grouping Selectors. Now for this you will see I am repeating the code from the decendant Pages (cos thats what the instructor says to do. lol), so Here goes, it is All generated Lorem Ipsum text though
Primary Box
In in et facilisis dolores eos vel eu amet diam sanctus eum elitr kasd autem at voluptua ipsum diam praesent et amet at erat qui consetetur et voluptua justo nibh justo ipsum duo eu consetetur dolores vulputate vero sea ipsum
This is an Inside Box
Secondary Box
Lorem voluptua accusam labore elitr dolore voluptua consetetur nostrud consetetur at eos nam eirmod diam sed esse lorem qui dolores kasd sit consetetur sanctus ut accusam gubergren lorem eleifend et est ea sea magna labore delenit delenit invidunt elitr suscipit
this is emphesized textThis is an Inside Box
Primary Box
Euismod volutpat et erat sadipscing duo clita diam et ipsum vero nobis lorem elitr labore cum et et aliquip erat kasd sit exerci sit exerci kasd duis et eos voluptua ea ipsum takimata gubergren sanctus sanctus aliquyam ea stet adipiscing
This is an Inside Box
Secondary Box
Sed sit accusam eos dolor ipsum gubergren et magna aliquyamluptatum dolores qui accusam magna hendrerit sanctus sit hendrerit magna justo tempor dolores vero lorem takimata autem sadipscing invidunt in esse dolor justo et sea et aliquyam rebum sanctus ut
This is an Inside Box
Okay to do grouping selectors I would Have to use a Comma (,) between each selector so it would be like this in the CSS .primaryBox, secondaryBox {} it makes formatting multiple elements much more simple if you want them to have the same Formatting. so you could group all the heading tags so that they are "uniformly" formatted throughout the document for example
This is heading 1
This is heading 2
This is heading 3
And so on and so forth. Sadly I can not get my code to center the text and everything else by way of wrapping things in a Div and doing
it that way, I know I did it accidentally (i think) with one of My other sites that I am using while doing my studies but i forget which one.
So That means, I will Have to go and finde it again sometime and work otu what I did, How I got it right and HOW to keep getting it right.
'Edited bit' I found out how to do the centering so it makes for a semi "responsive" site