CSS Set Hintergrundfarbe Vollbreite, wenn der Inhalt in einen Behälter mit Polsterung eingewickelt wird

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: CSS Set Hintergrundfarbe Vollbreite, wenn der Inhalt in einen Behälter mit Polsterung eingewickelt wird

by Anonymous » 25 Aug 2025, 08:33

Der gesamte Inhalt wird in einer Containerklasse, bei der 6REM -Polster für die linke und rechte Seite hinzugefügt wird. Im Container habe ich einen Abschnitt namens USP -Abschnitt. Dieser Abschnitt hat eine Hintergrundfarbe und ich möchte, dass diese Farbe die volle Breite einstellt. < /P>
Wie kann ich das mit CSS tun?

Code: Select all

.container {
padding: 0rem 6rem;
}
.intro,
.destinations {
border: 1px solid red;
}
.usp-section {
background-color: #c2b280;
padding: 1rem 0rem;
}< /code>





Document





Welcome to Our Website
Discover amazing places to visit and unique experiences.



Unique Selling Points
Discover what makes us stand out from the competition.



Featured Destinations
Explore our top-rated destinations handpicked just for you.




Top