css

I have a CSS file in my App_Themes folder - how can I apply it to my web user control?

Any help? I can't seem to figure it out. ...

Should we learn all CSS (till version3) even if all browser don't support and we don't use?

Should we learn all CSS (till version3) even if all browser don't support and we don't use? Here mentioned http://meiert.com/en/indices/css-properties/ all css properties I don't know about all even in 2.1 , should we learn about each css property of all version even if they are not in use. I haven't learn about these CSS 2.1 propertie...

Is it OK to use css optimizers to before to make site live?

Is it OK to use css optimizers to before to make site live. When we can't to any other server side compression techniques (gzip, combining, sass, less etc) I want to make CSS file short and readable. How to use these tools without loosing css functionality. what options we should use and what not. Have you used any? Which is best tool ...

Nested <a> and <span> challenge

Hi all, Trying in vain to get a nested link working within a nested span. This is a working test page for the code below to explain what I'm trying to do. Any ideas on how to get this working in valid html? I guess it's either a nesting order or style syntax thing but I am at a loss. Any thoughts much appreciated. <div id="greyback">...

Right div pushing center div further down

I cannot get this last div to go up properly in my layout and have tried countless things. I'm not sure what's going on with my css? Here is a screenshot: http://img291.imageshack.us/img291/5377/screenshot20100528at123.png #events { float: left; width: 420px; margin:0 0 5px 0; font-family:Helvetica, Arial, sans-seri...

CSS nested div height 100%

I've currently got the #border div at 100% of the page height, but am trying to get the #container div to stretch to 100% inside #border. At the moment #container only stretches to fit the content inside it. * { margin: 0; } html, body { height:100%; font-family: Georgia, Times, "Times New Roman", serif; font-size:13px;...

change color of a word in div value using javascript

Hi, I have a <div id="one">this is a sentence</div> I have a textbox for userinput, if the user types a word which matches any word in div, eg: if user types "this", which is also there in div value, the background color of "this" should be changed, using Javascript Thanks Sunny. ...

div Height: 0 problem in IE

to clear: both my content i use this: CSS: .clr { clear: both; height: 0; /* i have tried 0.001em to */ line-height: .001em; overflow: hidden; } HTML: <div class="clr">&nbsp;</div> it works perfectly in every navigator. But in IE 7 & 8 the div still have a height of a few pixels. How can i avoid this? ...

Why does placing this html within form tags change the layout?

I'm using this free Web Template - EliteCircle and have just incorporated it into a master page. The master page wraps the html in: <form id="form1" runat="server"> //master page html </form> The template almost comes out fine except the entire page is surrounded by a think white border (default CSS behavior for form?) and the footer...

Does Javascript has an effect to the printed version of the site?

Simple question, don't have a printer around, My client is asking if the hiddent elements of the web page(items that show up on click) will be printed out on the paper or will it be hidden? ...

specified size of td

<table class="data-table"> <tr> <th style="width: 200px;"> DescriptionDescription <%--in this case <td> is resized--%> </th> </tr> <% foreach (var item in Model) { %> <tr> <td style="width: 200px;"> <%= Html.Encode(item.Description) %> </td> </tr> <% } %> </table...

Toggleclass doesn't seem to toggle class, what am I doing wrong?

Hi, I've been trying to make a button toggle a class, as well as show another div below it. Here is a jsFiddle example I have made for you. The first function works perfectly, shows and hides the div, but also I want the button itself to add and remove a class, I thought this would work but I seem to be doing something wrong. Thanks....

Reducing the opacity on a div without reducing the opacity of the contents

Want to reduce the opacity of page contents container background without reducing the opacity of the contents. <div id="container"> <div id="page contents"> page contents goes here, like amazing articles and all that. </div> </div> Needs to be able to expand with the content, thus can't have a fixed height. Absolute position...

<blink> tag in Internet Explorer

Neither the <blink> tag nor the text-decoration:blink; style in css are supported in Internet Explorer. Is there any technique available for making blinking text in IE? ...

How to customize s:formattedText

I am using <s:formattedText> for formatting my page.It works fine as expected, but the padding around the text seams to be large. So I applied my own styleClass to this element but it didn't take effect. Firebug shows that the paragraph has styleClass 'seamTextPara'. Where will I be able to find details on the above styleClass and how t...

JQuery noob: Show div on hover, click to toggle display..

Hi, been playing with this for a few hours and can't figure it out. jsFiddle example here. Basically I want this to show on hover, and click it to toggle whether it is displayed or not. I thought this was the way to do it with display:block;, but I can't get it to work. Thanks for any help. ...

How to hide elements without having them take space on the page?

I'm using "visibility:hidden" to hide certain elements, but they still take up space on the page while hidden. How can I make them totally disappear visually, as though they are not in the DOM at all (but without actually removing them from the DOM)? ...

Highlighting the current page in rails, only works for some pages

I've used this tutorial to highlight the current page in the menu. I have a pages controller with a few static pages, for the home page I simply have def home @title = 'Home' and similar for contact pages etc. Then in my main layout file I have <body class="<%= @title %>"> and this works fine to set the correct css, but how do I set @...

write border in shorthand !

i am using border on object. like .box{ border-left:solid 1px #000; border-right:solid 1px #000; border-bottom:solid 1px #000; width:50px; height:50px; } may i write this in shorthand? ...

How can I observe the style on an element during mouse-over?

We supply micro-site content to a client. They supply us with a HTML wrapper and we inject our content into it. I'm trying to debug an issue where our style sheet appears to be interfering with the style in their wrapper. Normally I'd use firebug or IE Developer Toolbar to select the element and I can see which styles are being applied...