[HTML][PHP] Table width, newssystem - Help needed! menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    Harambeqt's Avatar Elite User CoreCoins Purchaser
    Reputation
    333
    Join Date
    Mar 2010
    Posts
    1,206
    Thanks G/R
    9/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HTML][PHP] Table width, newssystem - Help needed!

    Having some trubble with my newssystem on my website...

    [HTML][PHP] Table width, newssystem - Help needed!-526dswrr9wdxf6bj4tcbqk2gktgqtvoonwtf-jpg
    (http://ez-img.com/images/526DSWRR9WD...GQTVOONwtf.JPG)

    The "PPPPPPP"s should not go past the table width, instead they should go down on a new row.

    So if anyone knows how to fix this, do tell!
    Here's the news table;

    Code:
        
    <td width="500" align="center" valign="top"  class="font-3">
        <table width="500px" border="0" align="right">
          <TR>
    
            <?php do { ?>
       <div class="news">
        <div class="newstop"><br /></div>
        <div class="newscontent">
    
    *PHP CONTENT*
            
            
          </tr>
        </table></td>
    Thanks in advance.
    Support the #1 WoW Emulator:
    http://arcemu.org/
    https://github.com/arcemu/arcemu
    - - -

    [HTML][PHP] Table width, newssystem - Help needed!
  2. #2
    itsnflanders's Avatar Private
    Reputation
    4
    Join Date
    Feb 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add a max width to the "newstop" class.

    Either with:
    Code:
    <div class="newstop" style="width:SIZEHEREpx">
    or within the CSS as:
    Code:
    .newstop {
    {
    	width:	SIZEHEREpx;
    }
    Last edited by itsnflanders; 06-02-2012 at 03:42 PM.

  3. #3
    Harambeqt's Avatar Elite User CoreCoins Purchaser
    Reputation
    333
    Join Date
    Mar 2010
    Posts
    1,206
    Thanks G/R
    9/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by itsnflanders View Post
    Add a max width to the "newstop" class.

    Either with:
    Code:
    <div class="newstop" style="width:SIZEHEREpx">
    or within the CSS as:
    Code:
    .newstop {
    {
        width:    SIZEHEREpx;
    }
    Already have width on top, content and newsbot.
    The html is following the width "rule" however the php/ from the sql database has no width limit....
    Support the #1 WoW Emulator:
    http://arcemu.org/
    https://github.com/arcemu/arcemu
    - - -

  4. #4
    itsnflanders's Avatar Private
    Reputation
    4
    Join Date
    Feb 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In that case max width should do the job.

    [HTML][PHP] Table width, newssystem - Help needed!-image00-jpg

  5. #5
    Harambeqt's Avatar Elite User CoreCoins Purchaser
    Reputation
    333
    Join Date
    Mar 2010
    Posts
    1,206
    Thanks G/R
    9/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by itsnflanders View Post
    In that case max width should do the job.

    [HTML][PHP] Table width, newssystem - Help needed!-image00-jpg
    I will try that, thanks for the help, +r.
    Support the #1 WoW Emulator:
    http://arcemu.org/
    https://github.com/arcemu/arcemu
    - - -

  6. #6
    itsnflanders's Avatar Private
    Reputation
    4
    Join Date
    Feb 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by AfterDawn View Post
    I will try that, thanks for the help, +r.
    No problemo. Good luck with further development of your website.

  7. #7
    Harambeqt's Avatar Elite User CoreCoins Purchaser
    Reputation
    333
    Join Date
    Mar 2010
    Posts
    1,206
    Thanks G/R
    9/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by itsnflanders View Post
    No problemo. Good luck with further development of your website.
    The "headline" is still not following the width...

    index with news:
    Code:
      <div class="news">
        <div class="newstop"><br /></div>
        <div class="headline">
          <span class="headline"><?php echo $row_news['headline']; ?></span>
          <?php echo $row_news['content']; ?>
          <br />
          <a><?php echo $row_news['author']; ?></a>
         </div>
         <div class="newsbot"><br /></div>
      </div></tr>
    Css for content:
    .newscontent {
    height:auto;
    text-align:center;
    max-width:500px;
    color:white;
    background-color:#0f253a;
    }
    css for headline
    .headline {
    max-width:500px;
    }
    Support the #1 WoW Emulator:
    http://arcemu.org/
    https://github.com/arcemu/arcemu
    - - -

  8. #8
    itsnflanders's Avatar Private
    Reputation
    4
    Join Date
    Feb 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding:
    Code:
    word-wrap: break-word;
    It's because the PP.. is one long word and the page fully writes it before going to a new line, however if you add the word-wrap it will break at the max given width.

  9. #9
    shumi's Avatar Member
    Reputation
    11
    Join Date
    Dec 2007
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <td width="500" align="center" valign="top"  class="font-3">     
    <table width="500px" border="0" align="right">      
     <TR>         
    <td>        
     <?php do { ?>    
    <div class="news">     
    <div class="newstop"><br /></div>    
     <div class="newscontent"> 
     *PHP CONTENT*                  
    </td>         
    </tr>     
    </table>
    </td>
    That should so it.
    Last edited by shumi; 06-03-2012 at 02:28 PM.

  10. #10
    Harambeqt's Avatar Elite User CoreCoins Purchaser
    Reputation
    333
    Join Date
    Mar 2010
    Posts
    1,206
    Thanks G/R
    9/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by itsnflanders View Post
    Try adding:
    Code:
    word-wrap: break-word;
    It's because the PP.. is one long word and the page fully writes it before going to a new line, however if you add the word-wrap it will break at the max given width.
    Originally Posted by shumi View Post
    Code:
    <td width="500" align="center" valign="top"  class="font-3">     
    <table width="500px" border="0" align="right">      
     <TR>         
    <td>        
     <?php do { ?>    
    <div class="news">     
    <div class="newstop"><br /></div>    
     <div class="newscontent"> 
     *PHP CONTENT*                  
    </td>         
    </tr>     
    </table>
    </td>
    That should so it.
    Thanks, It worked! +r both of you.
    Support the #1 WoW Emulator:
    http://arcemu.org/
    https://github.com/arcemu/arcemu
    - - -

Similar Threads

  1. Replies: 0
    Last Post: 11-29-2011, 05:48 PM
  2. [HTML & PHP] Register & login help.
    By Ascelyn in forum Programming
    Replies: 5
    Last Post: 04-08-2010, 02:55 AM
  3. PHP Problem - Help needed
    By Falgern in forum Programming
    Replies: 3
    Last Post: 05-21-2008, 04:02 AM
  4. HTML Help needed :(
    By OVVeN in forum World of Warcraft General
    Replies: 3
    Last Post: 09-18-2007, 09:17 PM
All times are GMT -5. The time now is 12:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search