css

What is the difference :focus and :active?

What is the difference :focus and :active? ...

I want to use <pre></pre> to keep the format of input text, but the displayed text crosses the boundary of its parental tag<div></div>. How to solve this problem?

The text in <pre></pre> steps beyond the boundary of its parental <div></div>. How to solve this problem? It is said that the line lengths in the preformatted text can be shortened, but how to do it? I have seen <%# DataBinder.Eval(Container.DataItem, "Comments") .ToString().Replace("\n", "<br />") %> Is it c#? I am...

get document.styleSheets by name instead of index?

document.styleSheets is used with an index, but what If I want to use stylesheet.insertRule with with a specific CSS file ? I know the file's name, which is injected to a page and at some point via JS. ...

Why do I get nothing with $('#leftquota').val()?

<span id="leftquota" style="display:none" value="$row[available]">$row[available]</span> JQuery code: var left=$('#leftquota').val(); alert(left); ...

input type=submit text vertical alignment in FireFox

I'm trying to style my form buttons and I'm experiencing a problem in FireFox that I can't get to the bottom of... I want to style certain <a />s and <input type="submit" />s to look the same (I have a button background image, using a sliding-doors technique to apply a hover effect.) This all works great, except in FireFox, the input s...

Jquery .next IE6/7 issue

I've been having nothing but problems with this script for a simple hide/show gallery of testimonials. I think the java is somewhat self explanatory... When the page loads, I tell it to show the first testimonial in the line up (as the css is display:none) and gives it a selected class name. Works fine in across the board. On click I ...

ASP.NET: ImageButton not in the middle

I worked over 1 hour on a 1-pixel-thing, here is the code: <div id="Zeitraum" style="border: 1px solid black; width: 200px; padding:5px;"> Zeitraum: <asp:DropDownList ID="ddlZeit" runat="server" > <asp:ListItem Text="10 Tage" Value="10"></asp:ListItem> ...

jquery: auto-size absolute-positioned child div

hi, i'm having the following markup using 2 divs. the #child div has set position:absolute; +------------------------------+ | +----------+ | | | #child | | | +----------+ | | | | | | | +--------------...

css font-style: italic Vs oblique

What is difference between these two font-style:italic font-style:oblique I tried with w3school Tryit Editor. Visually unable to find any difference. http://www.w3schools.com/css/tryit.asp?filename=trycss_font-style Any further information, I'm missing?? ...

How can I extend a div to bottom of page?

How can I extend a div to the bottom of the page? Let's say I have a div that starts at the top, and has a background image I want repeated to the bottom of the page. How would I go about doing this? Live example found here: http://mibsolutionsllc.com/ecgridos/about/ with the #content div. ...

css font properties Vs text properties

After referring these two links (font properties and text properties), I have a doubt. What is font? and what is text? http://www.w3schools.com/CSS/css_reference.asp#font http://www.w3schools.com/CSS/css_reference.asp#text For example both color, font-size describes typography but why they placed in two different categories? I'm m...

how to show section of a CSS sprite within a set position on the whole html body

hi there. I use sprite sheets for my css, adn they work great, however i want to have a section of my sprite sheet on the footer it is like a curved block and the left hand content boxes will come over the top of this a little. however i cant seem to get a section of a sprite as a background positioned at the bottom. now normally you ...

Positioning divs with z-Index in Internet Explorer 7

I have two relative positioned DIVs A & B. a has a DIV as child element called A' which is absolute positioned and has a z-index of 1000. DIV B' is a child element of DIV B and positioned absolute as well. Firefox renders this as expected: A'-B'-B-A(from nearest to farest from the user) However, in IE7 I get: B'-B-A'-A Please can someo...

Alignment and padding for asp:CheckBoxList

I have an asp.net checkboxlist as follows: <asp:CheckBoxList ID="CheckBoxList_Genres" runat="server" RepeatColumns="3"> <asp:ListItem Selected="True">Action</asp:ListItem> <asp:ListItem Selected="True">Comedy</asp:ListItem> <asp:ListItem Selected="True">Classics</asp:ListItem> <asp:ListItem Selected="...

Positioning divs with z-Index in Internet Explorer 7

<div style="position:relative;"> OUTERFOO <div style="position:absolute; z-index:1000;">FOO</div></div> <div style="position:relative;">OUTERBAR <div style="position:absolute;">BAR</div> </div> I want FOO to stack over BAR without OUTERFOO stacking over OUTERBAR! This works in Firefox, but not in IE7. Can someone post a workaround? Th...

HTML/CSS: Floating element in H2 element

This is the HTML: <h2> Log in <a onclick="doSomething()" href="#" class="float-right">&nbsp;</a> </h2> This is the CSS: .float-right { float: right; background: url(img.png); width: 10px; height: 10px; text-decoration: none; } So this should make the .float-right element float to the right of the text in the...

How to apply CSS to namespace prefixed elements in IE8?

http://mailmarkup.org/hcl/hcl1%5F0-documentation.xsd I am trying to apply some CSS to the above link. It looks perfect in Firefox and Opera, but it is absolutely horrible in IE. It seems the fonts are not being applied and no styles are being applied to namespace prefixed elements. Any ideas? Here is the CSS: http://mailmarkup.org/...

Do I use Cursor Hand and Cursor Pointer or both?

How do I use cursor hand cross browser? ...

CSS: Safari on Mac doesn't adhere to my Submit Button style

I have applied the following CSS to a FORM submit button: font:normal 15px helvetica,arial,sans-serif; padding:6px; On Windows, regardless of the browser (IE/Firefox/Chrome), this increase the FORM submit button and give the button spacing padding of 6px. However, on OS X (Mac), the form submit button is not stylized at all. Meaning,...

XSLT vs CSS for displaying XML

It has been suggested that I use CSS for displaying XML. I know in my heart that this is wrong, but cannot find the words to adequately convince others. Can anyone provide me with a list of pros/cons of using CSS and XSLT for displaying XML. Thanks! ...