Announcement

Collapse
No announcement yet.

Creating columns of content

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Creating columns of content

    I am trying to create a Page that will have two columns of content. I started with a layout I found on the SFNT.

    Code:
    <section class="o-layout u-grids-1 u-grids-2--m">
                <p class="o-layout__item">
                    <mvt:item name="readytheme" param="image( 'storefront_promo_small_01' )" />
                </p>
                <p class="o-layout__item">
                    <mvt:item name="readytheme" param="image( 'storefront_promo_small_02' )" />
                </p>
            </section>
    Since I want to put text in the o-layout__item can I change the paragraph tag to a div tag? I want to be able to use the paragraph inside the o-layout__item
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    The type of container would only effect the display if there was specific CSS attached to them. Typically, div and p are neutral.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Hi Leslie,

      Bruce is correct. If you are looking to have just wrapping elements, changing that code to DIVs is fine.
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment

      Working...
      X