How to get css to pick up text and an image.

Discussion in 'CSS' started by 24788, Oct 20, 2010.

  1. #1
    My code so far

    .sf_blog_post archive-post {
    ;
    }

    Where I want it to show. I want it to pick up the first image and like 100 words or letters of text. Currently it only shows a link.
    Example: this is wrong
    http://fithope.com/categories/Health.aspx
     
    24788, Oct 20, 2010 IP
  2. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #2
    Let me get this straight you want CSS . To display an Image and the 1st 100 words from an article . Something similar to a teaser article . Right ?
     
    ApocalypseXL, Oct 21, 2010 IP
  3. 24788

    24788 Peon

    Messages:
    529
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You are correct sir. Am I thinking of the right idea here or is CSS completely wrong for this?
     
    24788, Oct 21, 2010 IP
  4. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #4
    Well TBH I've never tried something among those lines . It can be done but I'm not sure that the method is practical . It is far more easy to do this in JS .
     
    ApocalypseXL, Oct 21, 2010 IP
  5. ethikz

    ethikz Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well to actually get it functioning the best, I would say JS is your best bet
     
    ethikz, Oct 21, 2010 IP