Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: CSS help needed

  1. #1
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    HTML Code:
    #bulksmssuccess {
    background-color: #c4d1cd;
    width: 300px;
    height: 360px;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;}
    .code {
    font-family: Courier, "Courier New", monospace;
    }
    I have a block(bulksmssuccess) whereby I display the text of an uploaded file inside of it(code).

    I use the file command in PHP to store the text in an array, line by line, and then display it on the page. The problem is, that I want to display the text exactly like it is in the file. At the moment the text wraps in the block.

    Here is the HTML
    HTML Code:
    <div id="bulksmssuccess">
    	<p class="code">
    <?php 
    	for($x=0; $x<count($smsfile); $x++){
    		echo $smsfile[$x]."<br />";					
    	}
    			
    ?>
    	</p>
    </div>
    So all I need is for the block to scroll horizontally and not wrap the text. Does someone know how this can be achieved?

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  4. #3
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Flip! you make me look like an idiot with your one liner solution! :classic:

    Thanks. J


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:58 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com