Activity Stream
48,167 MEMBERS
6934 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    The Wise One
    Website's:
    twilight.ws ddlrank.com

    Default Max width on code-box

    Hi,

    Im using phpBB2 on one of my domains and I wanted to apply some CSS that the code-boxes have a horizontal scroll-bar after it's over 500px in width lets say. In firefox it breaks the line but in IE it doens't.

    I currently have this in my CSS:
    Code: 
    /* Quote & Code blocks */
    .code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }
    Here is how it looks in firefox:



    here is how it looks in IE:


    Help would be appreciated
    Whoo Reviewed by Whoo on . Max width on code-box Hi, Im using phpBB2 on one of my domains and I wanted to apply some CSS that the code-boxes have a horizontal scroll-bar after it's over 500px in width lets say. In firefox it breaks the line but in IE it doens't. I currently have this in my CSS: /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; Rating: 5
    I can always be contacted by sending a tweet @twilightws

  2.   Sponsored Links

  3.     
    #2
    Member
    I think the best 'universal' luck you could get with what you want would be to switch the [code] tags so that they are actually part of a DIV. Then apply your attributes.
    No matter what browsers you use, div's seem to have the best luck for me.
    ^^ Make yourself a bag of popcorn and click this picture ^^
    to enjoy watching Rodney Mullen skateboarding!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CSS Div Width Help Please
    By Napis in forum Web Development Area
    Replies: 5
    Last Post: 15th Oct 2012, 05:41 PM
  2. Page width bug when inserting AddThis code
    By b7ri in forum Wordpress
    Replies: 1
    Last Post: 30th May 2012, 08:52 AM
  3. memberBox width
    By Mac in forum Feedback and Suggestions
    Replies: 4
    Last Post: 21st Dec 2010, 10:56 AM
  4. How to fix the width of text/code boxes within posts
    By Uterus Spacecraft in forum vBulletin
    Replies: 8
    Last Post: 22nd Jun 2010, 02:50 AM
  5. Change width, ipb 3.0.x?
    By c0rrup in forum IP.Board
    Replies: 8
    Last Post: 2nd Sep 2009, 07:42 PM

Tags for this Thread

BE SOCIAL