Shop OBEX P1 Docs P2 Docs Learn Events
Thread / Post width (css) — Parallax Forums

Thread / Post width (css)

VonSzarvasVonSzarvas Posts: 3,523
edited 2010-11-18 06:41 in General Discussion
This little thing has been nagging me for a while. No big deal, but it is nice to keep things tidy, and maybe this has not been noticed by anyone else...???

For example, a recent post at: http://forums.parallax.com/showthread.php?t=127166

Viewing the page with FF on my netbook (ie. small screen device if that matters), the width of the post with the code in is MUCH wider than the other posts on the page. It causes the scroll bar to appear, and painful scrolling to be required.

It is almost as if the word-wrap does not work with stuff in tags; at least in this case within code tags.

It might more likely be a simple css/styling issue, that the code tag area is set to (or inherits) a different (much wider or 100% perhaps) width than the rest of the post.

If this is something that could be fixed, that would be very nice !

If it would help Parallax for me to analyse the issue, I would be happy - just shout. Of course it would take "some" time; whilst I would VERY gladly do it, it would only be sensible if needed!

Comments

  • VonSzarvasVonSzarvas Posts: 3,523
    edited 2010-11-16 10:12
    .. here is a demo of the above mentioned issue:

    demovar  VAR   Long
    


    See how the above code section stretches beyond the bounds of the normal post width!
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-11-16 10:27
    This is because the code block is assigned an absolute width rather than a percentage of its container width. Unfortunately, the forum's CSS information is embedded in every page, rather than in an external file. This makes it hard, if not impossible, to apply user CSS rules via a modified .css file. (I've tried it under Opera without success.)

    -Phil
  • VonSzarvasVonSzarvas Posts: 3,523
    edited 2010-11-16 12:11
    Phil, that's a pity.

    I did just sneak a very quick look. I can indeed see the width hard-coded to 750px at the relevant html block. Maybe usefully though, the block also has a class assigned "alt2".

    As the site css is inserted to each page, I suspect it must be in one file somewhere... "vbulletin_css.css" perhaps?

    In that case, maybe "width:80% ! important" could be added to the alt2 style definition?

    Just a quick thought. Might give the old FF dev. tools a spin when I am back in the office to prove if that would work or be nonsense!
  • Ding-BattyDing-Batty Posts: 302
    edited 2010-11-16 13:31
    Perhaps a bit of Greasemonkey programming is in order, that can be used just on netbooks -- I have the same problem when reading the Forum on mine. I haven't done any (yet), maybe this is the time to start...
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-11-16 13:46
    You could create a local frameset for the forum with an "onload" JavaScript that alters the style settings dynamically.

    -Phil
  • Jim EwaldJim Ewald Posts: 733
    edited 2010-11-18 06:41
    I looked at this when we first encountered the issue and found that, for reasons known only to the developers, the width is not embedded in CSS at all. Instead, it is a configuration parameter within the software. The HTML for that portion of the page is a hard-coded in-line style. I don't know that in-line styles can be trumped (overridden) by any other CSS.

    We're preparing an upgrade to vBulletin 4.x. I'll take a look this issue in the new software and find out if it's been implemented differently.
Sign In or Register to comment.