Jump to content

[SOLVED] My php Variable.


denoteone

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.