Tuesday, March 13, 2012

Simple HTML question... I think.

Hi

I'd like help with what I think are two simple questions.

First, I'd like to display some terms and conditions in a read only multiline (scrollable) text field - only I want to make parts bold, and headings in a bigger font - what I think I need is HTML within a text area - but how?

The other question I have is how to make a button into a simple link?

Thanks
Richard

you could just use a DIV or panel with scrolling - or an IFrame, pointing to an html file, with all the formatting you'd like.

as for the button - instead of ASP:Button - change it to ASP:LinkButton


I use a scrollable div for Terms & Conditions like so:

<div style="width : 400px; height : 20px;overflow : auto; ">MyStuff</div>

Obviously the key to making it scrollable is the overflow style property.


RichardLaw:

a read only multiline (scrollable) text field

you can use DIV with Style as OVERFLOW

RichardLaw:

I have is how to make a button into a simple link?

you can use LinkButton Server Control for that purpose...

0 comments:

Post a Comment