Announcement

Collapse
No announcement yet.

Can you use CSS in Fragments?

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

    Can you use CSS in Fragments?

    I have looked around the forum in the past few days and seena few articles on column counts etc. some seems abit confusing tbh.

    like many i am after a 1 col, then 3 col, then 1 then 4 etc etc on the home page.

    not really looking to use tables, so wondered if I can insert css code into a 1 col width fragment in order to float 3 seperate clickable images next to eachother?

    also, should I add the css to the actinic stylesheet or can I creat my own? I use several on my site for different things.

    of course I may be way off and perhaps there is a simpler way to achieve what i want.

    Cheers in advance
    ***************************************
    Water is both ordered and flexible at the same time. It maintains its own identity, but conforms as necessary to the circumstances around it.

    -Miyamoto Musashi - The Book of Five Rings

    Jake
    Buy Fire Extinguishers
    Fire Extinguishers

    #2
    You'd apply the classes in the fragment and add the styles into the stylesheet usually. Actinic stylesheet would be fine. There would be little sense in adding the styles actually into the fragment, much better in the stylesheet. You could do something like:

    <div class="fragImageContainer">
    <img 1>
    <img 2>
    <img 3>
    </div>

    and have:

    .fragImageContainer img {
    float: left;
    }

    as an example of one of the many ways to do this.

    Comment


      #3
      Cheers for the quick reply Lee. As always your help is much appreciated.
      ***************************************
      Water is both ordered and flexible at the same time. It maintains its own identity, but conforms as necessary to the circumstances around it.

      -Miyamoto Musashi - The Book of Five Rings

      Jake
      Buy Fire Extinguishers
      Fire Extinguishers

      Comment


        #4
        Cheers Lee.

        Implemented a test run on the home page and worked a treat
        ***************************************
        Water is both ordered and flexible at the same time. It maintains its own identity, but conforms as necessary to the circumstances around it.

        -Miyamoto Musashi - The Book of Five Rings

        Jake
        Buy Fire Extinguishers
        Fire Extinguishers

        Comment


          #5
          Hi All,

          I am looking to do the same as Jake has done and add 2 rows of 3 clickable images under the single column fragments on my home page.

          From the information provided above I can not understand how to do it. Can someone please give a step by step guide on how to do it?

          In searching the forum there seems to be many ways to do this type of mod over the years, but this post is the most current and works well on Jake’s site.

          Any help would be appreciated.

          Regards

          Jim
          Sto-It Apartment Storage Solution www.sto-it.co.uk

          Comment

          Working...
          X