Power Coder
Power Coder
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
That could potentially be it. Maybe he just worded it incorrectly without realizing it. 🤔
17 replies
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
Thank you! I actually assumed I had access to all the server channels. I was wondering why there wasn’t one specifically for the course.
17 replies
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
The CSS Demystified one.
17 replies
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
The was quote I shared is from Kevin in the CSS course. The idea that block level elements can contain both block level elements as well as inline level elements simultaneously seems to be correct from my own experience plus from many of the examples I’ve seen. For example, I can create a div with both a p tag & a span. Unless the browser is doing something under the hood to covert them all to one type of element?
17 replies
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
Ok so here is an example: <div> <p>This is a block level element.</p> <span>This is an in-line level element.</span> </div> So in this example, there is a mixture of both a block level element (the p tag) & an in-line level element (the span tag). So if this is possible, it feels like it is contradictory to the quote: “When we have a block level element, it can either contain other block level elements, or inline elements. It cannot contain a mix of them”.
17 replies
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
That’s what’s causing me confusion. According to the quote I gave from the course, it seems to say a block element (ie. a div) can’t contain an in-line element (ie. a span).
17 replies
KPCKevin Powell - Community
Created by Power Coder on 6/5/2024 in #front-end
Mix of elements in block level elements
Can a div (block level element) contain a span (in-line level element)? Or will the Block formatting context convert it to a block level element?
17 replies
KPCKevin Powell - Community
Created by Power Coder on 5/30/2024 in #front-end
“collapsing margins in action” section
I may not be understanding this correctly but in the collapsing margins section, Kevin doesn’t have any margins applied to the image so why was it not in full view at the beginning?
3 replies
KPCKevin Powell - Community
Created by Power Coder on 5/29/2024 in #front-end
split border on inline element
Thank you ! I’m trying to simply get a border around the h1. My questions are: why is the border only visible on the left side of the screen & why does the block element cause the inline border to split?
6 replies