need to remove width="100%" attribute rendered by asp:panel tag

  • Thread starter douglas greenshields
  • Start date
D

douglas greenshields

Hello all, wondering if you can help! This should be a simple one.

I currently have an asp:panel in an .ascx file that renders in Firefox
as a table with a width="100%" attribute. (The IE rendering into a div
doesn't have this attribute.) Although ideally I'd prefer that panels
rendered as divs whichever browser was doing the rendering, I'm happy
with it rendering as a table as long as this width="100%" can somehow
be excised.

Is there any way of stopping a width attribute automatically rendering?

I've found suggestions elsewhere on the forum that this type of problem
can best be countered using browserCaps - but I don't want to use
browser-sniffing code which will be out of date in a couple of years'
time. Are my fears ill-founded?

Thanks in advance

Douglas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top