Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebForm Layout & Style Sheets
Message
 
To
07/06/2005 12:41:07
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01020992
Message ID:
01021097
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>VS.NET 2003
>
>I have a few "newbie" questions:
>
>1. I gather that FlowLayout is preferred to GridLayout, especially for downlevel browsers. If so, it seems necessary to use tables to get a good looking layout for a data entry form. Is this true?
>

Not really, as long as you have a really good style sheet that you can assign various page elements to.

However, a lot of people still use tables for this kind of thing, especially if they're not taking full advantage of CSS.

But, if you have a real use of displaying tabular data, go ahead and use a table.

Personally, I tend to use a mixture of the two using which ever approach is easier/cleaner (I don't like having to shoehorn things into CSS just to say I'm only using CSS on my pages).

>2. A client has provided me with a fairly sophisticated CSS file which they'd like to see used as much as possible. I've included the .css in the project, but its styles don't seem to appear in the .style property sheet dropdowns for various controls/elements. Is VS capable of integrating the styles in this manner? Or, do I have to hand-code style info into the raw HTML?
>

Drop the style sheet on the design form - it will add a reference to it in the HTML. Use CssClass to set the CSS class that you want applied to that element. There isn't any drop-down for this (at least that I've seen), you just have to type in the class name.

>3. In general, are CSSs well-supported in ASP.NET? Any tips or "best practices" on their use?
>

From what I've seen, the support is OK. As far as best practices, using them would be high on my list ;-)

>I'd like the WebForms I'm building to render in FireFox the same as in IE, so my current thinking is to keep the HTML as clean and simple as possible, and use CSS styles wherever possible.

Yep, that's the best way to do this.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform