Streaming live at 10am (PST)

What does the red part mean when I am giving elements padding & margins?


#1

Here is my public share link: LINK
(how to access public share link)


#2

The red part? What red part?


#3

When your padding an element, say a div and you go past 0 into -1 and more, it starts to show red in the area that is that is being padded? what does this mean ?


#4

Oh the red stripes?

It indicates negative values for the magins. Paddings can't be negative.

Web design once used negative margins quite regularly to fix various needs. From hiding elements to control overlaps. mainly for layout purposes.

I don't really know if it's a bad thing, but Webflow draws them in red.

Since CSS3 and with the modern tools we have today, HTML5, Flexbox etc, I haven't used negative margins for web design. There's always a way around I think.


#5

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