Showing posts with label webpage. Show all posts
Showing posts with label webpage. Show all posts

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

Friday, March 16, 2012

on Post Back send page to top

I have a datagrid with paging allowed, changing the data results page through postback. when i postback, how can i set the webpage to be at the top possition instead of possition before postback?

I have to scroll down the webpage to find the navigation, then on postback the page is changed and stuck at the bottom of the next data results pageHi,

...and stuck at the bottom of the next data results page. Strange, that's just what most people are asking for.

Do you have smartnavigation set to true? This can make it possible to hold the scrolling position. So first check this (it can be set on the page or in the web.config).

Grz, Kris.
Yep! it was enabled, but not now.

Now im back to the top :)

Thanks