css

If I use XHTML transitional doctype then will it show (in my portfolio) like I'm not a professional expert?

If I use XHTML transitional doctype then will it show (in my portfolio) like I'm not a professional expert? It is for one client who is not paying much for work, and he doesn't know about Web Standards. I want to use some deprecated or presentational item to save time so what should I give to him? Site with XHTML strict but with some...

Remove header & footer from published Google Docs Spreadsheet

I found javascript solution for removing gridlines on Google docs spreadsheets (using "download as HTML" and then past javascript in Web Address Bar): works great !! javascript:var v="none",e="defaultView",o="border",m="Color",w=function(a,b){if(document[e]){if(document[e].getComputedStyle(a,null)[o+b+m]=="rgb(204, 204, 204)")a.style[o+...

Applying a css style to several patterns

How can I apply a CSS style block to several different classes? For instance, I have <div class="foo">...</div> <div class="bar">...</div> ... .foo .bar ??? // This selector should apply to both classes { font-size:50%; ... } ...

Is there a standard way for form layout in ASP.Net?

Here's my forms layout: <body> <p>Note that this form doesn't actually do anything except illustrate the Required Field Validator.</p> <form id="frmValidator" method="post" runat="server"> Usuario: <asp:TextBox id="txtUserName" runat="server" /> <asp:RequiredFieldValidato...

How to set the div must in the bottom using CSS?

This is the div for my product, you can see the demo like this: <div class="productItem"> <div> <!--image --> </div> <div> <!--text --> </div> </div> http://www.4freeimagehost.com/show.php?i=4aba7e2005a0.jpg Each product has a product image and product text. The image...

DIVs after a float left element on explorer appears after that element (not underneath)

Why does the 2 boxes are side by side in IE7 while "b" is underneath "a" on other browsers (where it should be)? <html> <head> <style type="text/css"> .a { float:left; width:100px; height:50px; background-color:#CCC; } .b { width:75px; height:75px; background-color:#F00; } </style> </head> <body> <div class="a">a</div> <div class="...

How to make separating lines/borders in a table disappear with CSS?

I have a simple HTML table, and I wish to have the separating lines (/ borders?) disappear. The desired end result is a table that is invisible except for the actual text. I've tried setting the "border" attribute to 0, didn't help. What is the correct CSS attribute that I should use? ...

CSS/HTML vertical alignment of links in horizontal navigation bar

Given the following code: HTML: <div id="nav_bar"> <ul> <li ><a href="#" class="current">HOME</a></li> <li><a href="#">GALLERY</a></li> <li><a href="#">TO DRINK</a></li> <li><a href="#">TO EAT</a></li> <li><a href="#">LOCATION</a></li> <li><a href="#">CONTACT</a></li> <li><a hr...

How to prevent <H1>'s from taking up more width than they need

If I make an <h1> title, its width is set to 100% by default. Is there a way to make sure its width is set to the smallest value possible? I need this to do special CSS stuff with borders. ...

Forcing a certain width/height with overflow in a <td>

I have a <table> with table-layout set to fixed, so that all explicit width/height definitions are respected no matter what. I'm trying to get a certain <td> to overflow, but even though I did the table-layout: fixed it doesn't work. What should I do to make it work? ...

CSS/jQuery: How can I get a scrollable area to re-size properly when the container is re-sized?

I'm using jQuery to display a tabbed area, and I have a table below the tabs. The whole thing, tabs and table, are re-sizable. I'd like for the table to have a scroll bar, so that when you re-size the container, the scroll bar re-sizes. Right now, I have two issues. 1) I'd like for the scroll bar to extend from just below the tabs...

problems with modal window/background

Hi, I'm trying to make modal window for my website, I have a problem with overlay or modal div I'm not sure what is the problem. The thing is everything except modal window shouldn't be clickable, but for some reason my navigation <ul><li> tags are visible and clickable. Here is css of my modal window : element.style { display:block; ...

How to get class names?

Hey, I am trying to get the class names dynamically for the script below. I have different class names that are created through PHP so need to get them using jQuery dynamically. As you can see below, there seems to be 2 areas where I need to get the class name. At the moment it is hard coded (the classes are named 'result'): 1) var ne...

why CSS dropdown menu makes content jump down? What fixes this?

I am working on a pure CSS dropdown menu. (IE6 is not important to me right now.) I have everything inside of a "wrapper" div for centering. The page has 4 divs inside of "#wrapper" the first being "#topbar", the second the "#nav", the third a "#content" box and the fourth, a "#footer". The "#content" and "#footer" divs have absolut...

add delay to this jquery on hover

I'm using this code: var timeout = 500; var closetimer = 0; var ddmenuitem = 0; function navBar_open() { navBar_canceltimer(); navBar_close(); ddmenuitem = $(this).find('ul').css('visibility', 'visible');} function navBar_close() { if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');} function navBar_timer() { closetime...

CSS file only loads in IE when fetched via an ASP.NET MVC Controler + Action

I'm serving up a site's CSS content via an ASP.NET MVC's Controller + Action. The css "file" appears to deliver correctly down the wire but only IE will apply it. Other browsers (Firefox, Opera, Chrome) ignore the CSS file and render the page without styling. IE8 works perfectly. This is the essential code that I'm using to return the C...

How to make Visual Studio stop "compiling" .js and .css files

I use Visual Studio as my editor for .css and .js files.. It REALLY SUCKS especially with .js files since it insists on indenting them in a very weird way, but I find it convenient that the first alt-tab is always the browser instead of another editor, and that ctrl-tab is always either the code file or the css/js. Anyways, in all its r...

How to define textbox size using css

How to define textbox size using css. ...

What is the advantage of Themes versus CSS in ASP.NET?

Since Themes in ASP.NET are used to style elements of your site, I was just wondering why would you use Themes rather than CSS, or is it common practice to use both? If so, when would you opt for one versus the other and why? Just seems to me like Themes are kind of unnecessary, so I am just looking on clarification if there really is a...

What are pros to use XHTML 1.0 strict with content="text/html; over HTML 4.01 strict?

I'm sure everyone here knows that we cannot serve the pages with the correct MIME type (application/xhtml+xml) for XHTML without breaking IE compatibility, and that any content served with text/html will be parsed as HTML by any browser out there. So if the content is not parsed as XML. I use a xhtml doctype only for one reason: it help...