CSS
Tutorials, tips and tricks on CSS (Cascading Style Sheets).
Get the most out of the leading technology for web and application development.
There is a well-known bug on Internet Explorer 10 for WIndows Phone 8 that avoids responsive web sites to display correctly. The cause is that Internet Explorer 10 doesn't differentiate device width from viewport width, and thus doesn't properly apply the media queries in your favorite responsive CSS framework.
You can find many fixes on the client side, but if you're using ASP.NET, you have the chance to fix it server side with only few lines of code.
Read all the article...
ASP.NET gives you the opportunity to add script blocks and JavaScript files
at runtime using methods like
ClientScriptManager.RegisterClientScriptInclude()
.
How to perform a similar action to include style sheets?
There's no native method, but it's quite simple to perform.
Read all the article...
The dropdown menus can be easily created with CSS.
Either horizontal or vertical menus are built using unordered list,
that is ul
. The dropdown feature is created combining the hover
pseudoclass along with the visibility
property of nested lists.
The following example shows a horizontal menu where the items expand downward.
Read all the article...
Here's the correct way to center a text vertically using only CSS.
Read all the article...
Microsoft IIS caches all the style sheets that are placed inside the App_Themes
folder, remembering the ones that are used by the web site pages (by all pages,
not only the current one); the effect is easily visible looking at the HTML code
sent to the client, noting that are included CSS links that were not specified
for the page.
This behavior requires a strong attention on styles inheritance, but also can
make Internet Explorer versions prior to the 9 to overflow the maximum number of
style tags allowed: in these versions the maximum number of style tags is 32 and
all the following ones are ignored.
Read all the article...