CSS

There are 3 entries for the tag CSS

How To Handle The DIV Tag Around ASP.NET Hidden Inputs

One praiseworthy aspect of ASP.NET 2.0 is its much improved XHTML compliance. However, there is one particular implementation detail related to this that causes some web designs to break and could have been implemented in a better manner. The detail is how ASP.NET 2.0 will wrap a DIV tag around hidden input fields. My complaint isn’t that Microsoft added this DIV wrapper, because it is needed for strict compliance. My complaint is that there is no CSS class or id on the DIV to make it easy to exclude CSS styling on it. For example, here is a snippet from the output of...

CSS Control Adapters Double PostBack Issue

My Coworker (and Subtext co-admin) Steve Harman writes about a weird double PostBack issue he ran into recently when using CSS Friendly Control Adapters with the CreateUserWizard Membership Provider control. So far he hasn’t received much in the way of feedback in the forums yet. Have any of you run into this? Technorati tags: ASP.NET, CSS

Quick CSS Optimization Tip

When you see the following in your CSS div { margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; } It makes sense to convert it to this. div { margin: 10px 20px; } It’s cleaner and takes up less space. There are a lot of ways you can optimize your CSS in this way. I'm not talking about compression, but optimization. Today, The Daily Blog Tips site linked to a website called CleanCSS that can perform many of these optimizations for you. For example, feed it the above CSS and it will make that conversion. Very nice! Technorati tags: CSS, Tips