SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2008
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Noob allignment question

    have a cms code as follows

    <?php print $feed_icons; ?> <h1 class="page-title"><?php print $title ?></h1>
    This is printed on the browser as

    Feed Icon
    Title

    But I would like to edit the code so it prints like this

    Feed Icon Title

    I i do like this
    <h1 class="page-title"><?php print $feed_icons; ?><?php print $title ?></h1>
    The Feed Icon gets the look of the h1 tag and I don't want it

    I would really appreciate any feed back.

  2. #2
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    you could do something like this:
    Code:
    <h1 class="page-title"><span class="feed-icon"><?php print $feed_icons; ?></span><?php print $title ?></h1>
    And just style the feed-icon class with css differently from the rest of your h1


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •