Jump to content

Recommended Posts

when I insert my $message into my table for my HTML email I need for the text to wrap. Right now if the message is to big the table just streches with it and puts the text all on one line? this is the table html below.

 

 


<table align="center" border="1" bordercolor="gray" width="400">

Link to comment
https://forums.phpfreaks.com/topic/83474-solved-my-php-variable/
Share on other sites

If you're new to programming for the web, I'd highly suggest doing everything with <div> rather than tables.  (You can still use tables for micromanaging certain parts of formatting easier, but divs will give you a lot more control and come in much handier later if you get into any Ajax programming)

 

Right now, just to make things really simple for you - try putting everything that you're doing into a container div.  (think, just a big box that constrains how wide your "page" is)

 

#container 			{
width: 80%;
background-color:#FFFFFF;
margin-top: 50px;
margin-bottom: 50px;
margin-left: auto;
margin-right: auto;
padding: 0px;
border: 2px solid #000000;
}

 

This will just make a box, and the box is 80% the size of your users browser window.  If you wanted to set a pixel dimension instead for width, you could do that too.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.