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.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1
    Member Mist's Avatar
    Join Date
    Dec 2002
    Posts
    61
    Member #
    395
    Code:
    <html>
    <body bgcolor="#CECECD">
    <head>
    <style type="text/css">
    A.link1 {color: #000000;text-decoration: none;}
    A:HOVER.link1 {color: #CCCCCC;text-decoration: none;}
    .myclass {
    		padding-left: 42px;
    		padding-right: 10px;
    		padding-top: 10px;
    		padding-bottom: 10px;
    }
    BODY {
        scrollbar-face-color: #F56F00;
        scrollbar-shadow-color: #687888;
        scrollbar-highlight-color: #FFFFFF;
        scrollbar-3dlight-color: #687888;
        scrollbar-darkshadow-color: #DCE0E2;
        scrollbar-track-color: #BCBFC0;
        scrollbar-arrow-color: #F56F00; 
    }
    </style>
    </head>
    
    
    <table width="750" align="center" cellspacing="0" cellpadding="0" border="1" bordercolor="#000000">
    <tr>
    <td>
    
    <table width="750" align="center" cellspacing="0" cellpadding="0" nowrap>
    <tr>
    <td width="750" height="121" background="header.gif" colspan="3">
    </td>
    </tr>
    
    <tr>
    <td width="189" height="26" background="sub_header_left.gif">
    </td>
    <td width="42" height="26" background="sub_header_middle.gif">
    </td>
    <td width="519" height="26" bgcolor="#FFFFFF">
    <font face="arial" color="#F56F00" size="3"><b>Welcome To *****.com</b></font>
    </td>
    </tr>
    
    <tr>
    <td width="189" height="32" background="left_curve.gif" align="left">
    </td>
    
    
    <td rowspan="2" colspan="2" align="left" bgcolor="#FFFFFF" class="myclass" width="561" nowrap>
    <div align="left">
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    </div>
    </td>
    </tr>
    
    
    <tr>
    <td width="189" background="leftbg.gif" align="left">
    aaaaa
    </td>
    </tr>
    
    
    
    </table>
    </td>
    </tr>
    </table>
    
    </body>
    </html>
    Okk i have that code...

    The problem is with these two tables:

    Code:
    <td width="189" background="leftbg.gif" align="left">
    aaaaa
    </td>
    Code:
    <td rowspan="2" colspan="2" align="left" bgcolor="#FFFFFF" class="myclass" width="561" nowrap>
    <div align="left">
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    </div>
    </td>
    Whenever i put in content bigger than the table itself it stretches... i don't want that.. . I've tried adding a nowrap to the <td> tags to no avail too

    Any ideas?

    - miSt

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    nowrap will make a cell expand so that's the opposite of what you want. I don't think there's anything you can do other than passing the string through a function like PHP's wordwrapping function.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Member Mist's Avatar
    Join Date
    Dec 2002
    Posts
    61
    Member #
    395
    Oh my lord then how come it works on every other site i mean i'm sure they don't use PHP to go onto a new line :s?

    I was told if i nested the tables i could get it to wrap onto a new line if the content is too large ?

    - miSt

  5. #4
    Senior Member energizze's Avatar
    Join Date
    Oct 2002
    Posts
    260
    Member #
    238
    it will wrap text ect... automaticly

    but if you have a line that is longer than the width of the cell with no spaces in it or an images that's wider than the cell then it will just stretch the cell.

  6. #5
    Senior Member Seldimi's Avatar
    Join Date
    Dec 2002
    Location
    Kozani, Greece
    Posts
    488
    Member #
    409
    Code:
    <html>
    <body bgcolor="#CECECD">
    <head>
    <style type="text/css">
    A.link1 {color: #000000;text-decoration: none;}
    A:HOVER.link1 {color: #CCCCCC;text-decoration: none;}
    .myclass {
    		padding-left: 42px;
    		padding-right: 10px;
    		padding-top: 10px;
    		padding-bottom: 10px;
    }
    BODY {
        scrollbar-face-color: #F56F00;
        scrollbar-shadow-color: #687888;
        scrollbar-highlight-color: #FFFFFF;
        scrollbar-3dlight-color: #687888;
        scrollbar-darkshadow-color: #DCE0E2;
        scrollbar-track-color: #BCBFC0;
        scrollbar-arrow-color: #F56F00; 
    }
    </style>
    .

    Why don't you create a css file for these ???
    - Webmaster's Planet . Greek Vortal For Webmasters ...
    - MyPortFolio - View My Creations

  7. #6
    Junior Member
    Join Date
    Jan 2003
    Location
    California
    Posts
    8
    Member #
    496
    your problem is that you are not putting spaces in your words.. at least if i'm understanding correctly it is. All tables are going to stretch to accomidate all of the content you place in them. It's like a browser window. If you have an image too large for the browser window, the browser will pull up a scrollbar so you may view all of the content. It won't cut the image off half way or something as a table won't cut a word without spaces off.

  8. #7
    Junior Member
    Join Date
    Jan 2003
    Location
    California
    Posts
    8
    Member #
    496
    A very good example of this by the way is THIS page you are viewing right now. If you notice, your html is too big for the cells, and has enlarged this table.

  9. #8
    Junior Member
    Join Date
    Jan 2003
    Location
    Scotland
    Posts
    18
    Member #
    504
    Liked
    3 times
    try not to creat a table within a table it is generally not nessesary and can cause problems.
    ...:::battle || idleyouth:::...

  10. #9
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    Originally posted by idleyouth
    try not to creat a table within a table it is generally not nessesary and can cause problems.
    I strongly disagree. Nested tables, in many situations, are more than neccessary. And they won't cause a problem if you know how to use them correctly.
    There and Back Again :Ogre:

  11. #10
    Senior Member energizze's Avatar
    Join Date
    Oct 2002
    Posts
    260
    Member #
    238
    Originally posted by nsr81
    I strongly disagree. Nested tables, in many situations, are more than neccessary. And they won't cause a problem if you know how to use them correctly.
    i agree, there are many situations where nested tables are necasary, and a single table just wouldn't work.


Page 1 of 2 1 2 LastLast

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 10:12 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com