We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Displaying a full page width section using a fluid field

How Do I?

marcom's avatar
marcom
2 posts
7 years ago
marcom's avatar marcom

I have a site where there are several sections on a page and each section has different color background. The background has to go the full width of the page but the content needs to be contained to the center of the page. I am trying to use fluid fields to allow the user the ability to order the sections as they se fit but I can’t figure out a way to know what html to wrap each section in.

So in the example below I need to be able to change the class “background-color” based on what the user choses. And the content inside of “container” are different fields in the fluid field. There would be multiple “background” sections on the page and the user needs to be able to select the order of them.

Thank you for any help.

<div class="background background-color">
    <div class="container">
        <h1 class="title">Title of section</h1><!-- /.title -->
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni obcaecati vitae iste iure veritatis. Nulla sit distinctio laboriosam corrupti mollitia soluta, iusto ipsum esse dolorum, amet veniam omnis molestias a.
    </div><!-- /.container -->
</div><!-- /.background background-color -->

NOTE: the lorem ipsum is suppose to be wrapped in a paragraph tag but it is being stripped out.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.