2012年3月21日水曜日

Rounded corners and Div tags? Possible?

Hey folks.. I watched the video's on Ajax and I love it.. My question is this: I noticed that the author used a Panel to make rounded corners.. Can I use a Layer / Div tag and color the background and round a corner ? That way I don't have any images included or an extra control? Just thought I'd ask.. I would like to use it like you see in table cells with a header that is an image that has rounded corners and info inside the control..

Thanks

Tim

hi,

yes you can have a TargetControl as div markup, just don't forget to add a runat="server" on that div tag..

hth


http://www.webmasterworld.com/forum83/7447.htm


Thank you, but someone needs to write MS or the w3c people or whoever makes the standards for HTML and CSS and say "Hey".. There's a need for this.. It would seem to me that we should be able to make a control that we could just use?

Tim


I started writing a control for this. I've got a little bit of code cleanup to do, but you can see a screenshot of it here:

http://Beta.GuitarVoice.com

And you can download a copy of it here:

http://www.MJ-Consulting.biz/MjControls/MjRoundedDiv/MjRoundedDiv.zip

After you install, you'll have to add the control to your toolbox by browsing to the dll. Like I said, it's not perfect, but is a start. I'm curious to know what you think of it.

Oh, and you'll have to copy the MjControls directory to your site as well (contains images).

0 件のコメント:

コメントを投稿