Monday, March 26, 2012

Ok i am new to all of this

Ok so i have a webpage that has a flash header. I have a gradient background and i am trying to add text under it but keep it lined up with the header. It will not let me add another nested table within the other table. If this makes any sence please help me.

You can nest tables within other tables. See example.

<table> <tr> <td>inside table 1</td> <td> <table> <tr> <td>Inside table 2</td> </tr> </table> </td> </tr></table>
If you do not understand, then please post your markup (HTML) code.

Ok here is what the problem is. I didnt explain it very well above. I have a flash header that is inside a table. That table has a gradient background. When i go to add another nested table within the other table it moves my text outside the gradient and aligns it left.

My goal is to have the edges of the text align with the edges of the flash header.... As of right now when i expand the browser the text moves all the way to the edges of the browser?? Make sence??


<tablewidth="100%"border="0"style="filter:progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr=#666666, endColorstr=#000000); height: 504px;">

<tralign="center"><td>

<!-- Start Flash movie import -->

<divid="flashRotatingPics"style="text-align: center;"></div>

<scripttype="text/javascript">

var so2 =new SWFObject("CODE Header.swf","CODE header","685","315","6",true);

so2.addParam("scale","noscale");

so2.addParam("wmode","transparent");

so2.write("flashRotatingPics");

</script>

<divid="flashcontent"style="text-align:center;">

</div>

<!-- End Flash movie import -->

</td></tr>

<tralign="center"><tdstyle="color: white; font-family: Sans-Serif, 'Gill Sans MT'; height: 11px">This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here. This is only copy so you can see what the text would look like here.</td></tr>

<tralign="center"><tdstyle="color: white; font-family: Sans-Serif, 'Gill Sans MT'; height: 21px"></td></tr>

</table>


I think you need to add thetext-align:center;style attribute to the two TD's

0 comments:

Post a Comment