> Forums > Active Forums > Themes and Templates > Ajusting the style of the last post
Last Post 22 Dec 2010 04:53 PM by mmoney. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
mmoney
Customers
mmoney
Post Count:150

--
10 Dec 2010 11:48 AM
    • DotNetNuke Version: 5.6.0
    • Active Forums Version: 4.3.2
    Hi,

    I was wondering if anyone would know how to reduce the font-size or modify the width of the Last Post field in the Forum View. For some reasons mine are leaking over, as shown in this image.

    Thanks

    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    16 Dec 2010 08:53 PM
    44 views over 6 days and no one cares enough to answer.

    That can be controlled via the templates. You could either hard code it or look at the CSS involved (if any) and edit that. In your case it could as simple as editing the CSS to a smaller font, though I suspect a better route would be to change the width of that table cell to something slightly larger.

    I believe the template you want to modify is the TopicsView.
    Status: I'm no longer moderated.
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    20 Dec 2010 09:50 PM
    Thank you for taking the time to respond. I GREATLY appreciate it. I'll have a look at the TopicsView template.
    Ray Dixon
    Customers
    Ray Dixon
    Post Count:199

    --
    21 Dec 2010 06:15 PM
    In the That table column isn't set to any particular width. However, the contents in the cells of that column are wrapped in div tags that are set to the class af_lastpost. I just looked at the CSS files in the AS install files and I found the af_lastpost class styled only in the module.css file in the dark theme. I did, however, find a class named aflastpost defined in the module.css file in each of the themes - _default, blue, dark, green, grey, navigator, and red - but not in any of the view templates. FWIW, none of the aflastpost styles I saw defined a width or font size.

    So, it looks like you will need to modify the TopicsView template to either define a width for the column that displays the last posts, as NFXBeats suggested, or add a class to it that you define in the CSS for your theme. Alternatively, you could define af_lastpost in the CSS so that it displays as you expect.

    It looks like the default installation of AS has a mismatch between the class in the templates - af_lastpost - and the class in the CSS in the themes - aflastpost. I wonder what, if any, other class mismatches exist?
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    22 Dec 2010 04:53 PM
    That explains a lot. I tried using Firebug to track it down, but I couldn't get it to change. Thanks for the insight.
    You are not authorized to post a reply.
    > Forums > Active Forums > Themes and Templates > Ajusting the style of the last post
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy