PRE Tags behave differently in IE, Mozilla

SD_Ryoko

<img src="\usflag.gif" align="left"/>&nbsp; Admini
Staff member
My Reference:

http://world-editor-tutorials.thehelper.net/jassintro.php

I am using the PRE tags for the 'code' statements within the posts.

IE translates the newlines into pre-formatted lines.

Mozilla does not.

Therefore Mozilla 'code' is all on one line.

If I add the line breaks for Mozilla, then its doubled spaced in IE

Why are they not the same?

How can I style the PRE tag to define the line breaks or spacing?
 

SD_Ryoko

<img src="\usflag.gif" align="left"/>&nbsp; Admini
Staff member
You can't change that.

If you allow it to wrap, it doesn't keep one line elements.

Like this.

Code:
This line is so long, but it won't wrap. This line is so long, but it won't wrap. This line is so long, but it won't wrap.

This is a new line.  It wrapped.
It will break the first line into multiples..
 

AceHart

Your Friendly Neighborhood Admin
Ah yes?
Hm...

PRE { white-space: pre; } ?


Although it seems somewhat weird to set PREs to PRE...
I didn't look through all of them, but it certainly looks better than all of them as one-liners.
 

SD_Ryoko

<img src="\usflag.gif" align="left"/>&nbsp; Admini
Staff member
Looks correct now.

Lets talk about overflow:auto;

In firefox it appears nicely. A horizontal scroll, no vertical. Enough room to see all verticle lines.

In IE, the vertical size of the box is not enough for the code; and a vertical bar appears as well.

For some one-line code statements, its so small, you have to scroll even to see the one line.
 

Attachments

General chit-chat
Help Users
  • No one is chatting at the moment.
  • C Cherry.Grove:
    My one game was basically Among Us but you sabotaged an entire medieval city simulated drastically inefficiently with dynamic NPCs :S
  • C Cherry.Grove:
    of course I never finished it x D
  • jonas jonas:
    xD
  • jonas jonas:
    I think you can still run the original game, just there's a chance your map won't work with the newer patches
  • jonas jonas:
    what development framework have you been looking at for mobile development?
  • jonas jonas:
    I'm currently creating (as a hobby) a space invaders like game for mobile using Xamarin, after starting a few larger projects that I also may not have finished :rolleyes::p
  • The Helper The Helper:
    Awesome! you should look at the Atari VCS platform it does not have a huge user base but the one it has is super active at around 11k and they have no games in there store
  • The Helper The Helper:
    basically it is linux
  • The Helper The Helper:
    OMG it is BanLord as Blackveiled on the forum
  • The Helper The Helper:
    what is up buddy
  • jonas jonas:
    thanks for the tip, that sounds cool. Never heard about the VCS before but seems like it should be a good match
  • tom_mai78101 tom_mai78101:
    The winter vacation left a toll on me. I missed staying up late and sleeping in late.
  • C Cherry.Grove:
    i haven't looked into it yet
  • C Cherry.Grove:
    If I could use something Python compatible it would save me some learning
  • C Cherry.Grove:
    But Unity might be easiest
  • C Cherry.Grove:
    looking at old posts here makes me happy. Makes me be all like "wow I was pretty smart in 2009"
  • C Cherry.Grove:
    mostly failing at life through adulthood really demotivated me for a while
  • C Cherry.Grove:
    ....what I don't get is why the fuck they would force us to permanently convert to a version of the game everyone fucking hated : \
  • C Cherry.Grove:
    Raid Shadow Legends texture pack smh
  • jonas jonas:
    Most people fail at life throughout their adulthood. Sometimes we get to learn from it. Usually it just feels like crap.
    +1
  • The Helper The Helper:
    What does not kill you makes you stronger is what they say
  • C Cherry.Grove:
    for real! :cool:
  • Varine Varine:
    Are we still on the topic of failing? I failed lots!
  • jonas jonas:
    If you ever want to talk about it we're here. The way I see it, you're still around. That required a few very difficult successes if you ask me:)

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome
    Top