Beta 2 (VS2005) StyleSheet Issue

C

C Gatto

Hello,

My organization is just beginning to test out Whitby with a plan to move to
it on release. We're just starting testing now and are coming across a
number of issues related to converting older VS2003 Framework 1.1 based
applications - nothing too bad but more work then we counted on.

There is one problem that has us stumped. We have a standard stylesheet
used on all of our asp.net apps. This stylesheet declares a 'button' style
that is used with asp.net LinkButtons. When compiled and executed in VS2003
it looks like a simple 95px rectangular box, grey background, centered text,
and a simple 1px border on all four sides. BUT, when compiled and run in
VS2005 it appears the same EXCEPT that there is an inner border around the
LinkButton text, giving the appearance of a box within a box. We have been
screwing around with different stylesheet declarations, app settings, etc.
So far nothing has made a difference. Does anyone out there have any idea
why there is a difference?

Here is the button stylesheet declaration:
..button
{
width: 95px;
height: 15px;
font-family: Arial, 'Microsoft Sans Serif';
font-size: 8pt;
color: black;
background-color: buttonface;
border-right: black 1px solid;
border-top: black 1px solid;
border-left: black 1px solid;
border-bottom: black 1px solid;
text-decoration: none;
text-align: center;
vertical-align: baseline;
}

Thanks in advance.
 
C

C Gatto

C Gatto said:
Hello,

My organization is just beginning to test out Whitby with a plan to move
to it on release. We're just starting testing now and are coming across a
number of issues related to converting older VS2003 Framework 1.1 based
applications - nothing too bad but more work then we counted on.

There is one problem that has us stumped. We have a standard stylesheet
used on all of our asp.net apps. This stylesheet declares a 'button'
style that is used with asp.net LinkButtons. When compiled and executed
in VS2003 it looks like a simple 95px rectangular box, grey background,
centered text, and a simple 1px border on all four sides. BUT, when
compiled and run in VS2005 it appears the same EXCEPT that there is an
inner border around the LinkButton text, giving the appearance of a box
within a box. We have been screwing around with different stylesheet
declarations, app settings, etc. So far nothing has made a difference.
Does anyone out there have any idea why there is a difference?

Here is the button stylesheet declaration:
.button
{
width: 95px;
height: 15px;
font-family: Arial, 'Microsoft Sans Serif';
font-size: 8pt;
color: black;
background-color: buttonface;
border-right: black 1px solid;
border-top: black 1px solid;
border-left: black 1px solid;
border-bottom: black 1px solid;
text-decoration: none;
text-align: center;
vertical-align: baseline;
}

Thanks in advance.
No sooner did I send this then the answer appeared. Simply specifying the
button class to display as a block element did the trick: "display: block;".
Now why it ran in VS2003 without this specified, but not in VS2005 is
another mystery, and if anyone knows the answer I'd still like to know.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,060
Latest member
BuyKetozenseACV

Latest Threads

Top