Announcement

Collapse
No announcement yet.

css styling of fragments

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

    css styling of fragments

    looking at the code generated by the fragments:
    Code:
    <h1 class="subheading"><actinic:variable Name="FragmentTitle"/></h1>
    <p><actinic:variable Name="FragmentText"/></p>
    the FragmentTitle becomes the contents of the < H1>< /H1> attributes. and the FragmentText just simply gets listed below the < H1> entry.

    Can I change the code generated by the fragment to become something like:
    Code:
    <div id=MyFragment>
      <h2 class="myFragmentHeading"><actinic:variable Name="FragmentTitle"/></h2>
      <actinic:variable Name="FragmentText"/>
    </div>
    this would allow me to play about with the CSS style (add a box around the whole of the fragment for instance) for that particular Fragment and all similar fragments.

    perhaps the Fragment concept is not the way to go?

    kev

    #2
    if you're going to use a div like that, be sure to specify appropriate with. and alignment if necessary. You'll probably want to add some margin/padding to make touching divs look better, but it'll work.

    your code will also need speech marks around the class id for the div, for compliance

    actinic.css can be edited to unclide your custom css.

    Comment

    Working...
    X