Very noobish question about text…

Hi there everyone. Sorry to get yet another noob asking just another noob question, but this seems as if a great community forum.

Once i place a piece of text inside a table, I can set the margins etc inside the CSS, but why does the text immediately just sit during the table Regardless of I do I tough to find any way for it to default into the top of the table Aside from ‘bumping’ it up with the addition of in & nbsp’s

Help much appriciated!

Heya Kaiserman,
In case you are laying out your design try a div instead of an table and make use of css.
If you should use a dining room table use valign to put it to this top
< stand width=" 100%" border=" 0" cellspacing=" 0" cellpadding=" 0" >
< tr>
< td valign=" top" > & nbsp; < /td>
< /tr>
< /table>
Kind regards

and the cellpadding=" 0" is where you’ll be able to set the margins when they are equal (eg. 5px perimeter all around).
If you would like unique margins, you can apply this

< stand width=" 100%" border=" 0" cellspacing=" 0" fashion = " margin-top: 5px; margin-left: 10px; margin-bottom: 1px; margin-top: 15px; " >

Thanks for your input but I am still confused…

It is a table with any fixed size plus a background, but We would like the text inside the table lined up while using top. For case:

< stand width=" 800" height=" 500" align=" centre" background=" impression. jpg" >
< p> internet page text< /p>
< /table>

Where do this div tags go with this

< div style=" wider: 800px; height: 500px; text-align: heart; background: URL(image. jpg); color: inherit’>
< p> A person’s stuff< /p>
< /div>

There’s no table at all.

Was currently answered….

put valign =" top" to all td elements

Otherwise, you can set this into the CSS code of saving bandwidth:

Code:
td vertical-align: top;

.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *