css

CSS: Importance of specifying object over generic dot?

Given <div class="foo"> <span class="bar"></span> </div> I've always defined the CSS classes as: .foo { } .bar { } Is specifying the object important, or ultimately for readability so you can quickly see which sort of element you are searching for when editing? IE: div.foo { } span.bar { } ...

Browser font defaulting

Hey, Say if I set the font-family for the page body to font1, font2, font3 and then I set the h1 tag's font family to font4, font5. If font 4 and 5 weren't installed, would the browser try font 1,2 and 3 before it used the browsers default font? ...

How to format html table with inline styles to look like a rendered Excel table?

I'm currently stuck settings border in a html table. (I use inline stiles for a better rendering in e-mail-clients) I have this piece of code: <html> <body> <table style="border: 1px solid black;"> <tr> <td width="350" style="border: 1px solid black ;"> Foo </td...

IE CSS3 box-shaodw with dynamic height

Hi, I'm trying to make a box shadow for a div with a dynamic height. wich works fine with filter: progid:DXImageTransform.Microsoft.Shadow(color='#78000a', Direction=180, Strength=15) But only if a specific height is set. But I want a shadow also on an dynamic height. Is this possible ? I also tried min-height but doesnt work. ...

Is there a jquery plugin that columnizes list items horizontally rather than vertically?

I'm looking for a jquery plugin or javascript that will columnize a list. I've seen Columizer, which is great and the configuration options are just what I need, except that it doesn't columnize data in the direction I need. My list: 1. 2. 3. 4. 5. 6. 7. 8. 9. Columizer behavior I want: 1. 2. 3. 4. 5. 6. 7. 8. 9. Columizer behav...

Need continuous execution using a handler

Hi there I currently have to two links, two arrows one pointing up and the other down, what I want it to do is scroll content located in <div id="scroller1"> which is masked by <div id="scroller">. In other words: <div id="scroller"> <div id="scroller1">...</div> </div> My code looks like this: $("a.mouseover_up").mousedown(fun...

How can I check the default css settings of a browser?

Hello, Where to look when I want to know all the default css settings? for Google Chrome, IE, and Firefox, to start with. Thanks for helping ...

How to calculate color shadows codes ?

I would like to know / calculate color codes of N red shadows (N can be 5, 20, or 50, for example). How could I do this ? I noticed, for example, that the following gives some red shadows: R = 255, G = B = 0..255 R = 0..255, G = B = 0 Is there any known method to calculate shadows ? ...

jQuery: How-to toggle display on hover

I have 2 spans. First one: <span class="body"> Second one: <span class="desc"> My CSS: .desc {display: none;} What I want to do, is show the second span, when hovering the first. No fancy effects or anything, just show the span. I know there is a simple jQuery solution out there, but I'm new to jQuery so I'd appreciate some help fin...

Absolute Positioned DIV within another Absolute positioned DIV does not show on IE

Please refer to http://stonepay.sonikastudios.com/css/style.css as well as http://stonepay.sonikastudios.com/ for the actual page reference if you like. I have a dropdown menu that shows up on click. This works on the "Our Services" and "Our Projects" menu items, and the fade-in and all works just fine. Being dropdown menus that cannot...

CSS Positioning - IE problem

hi, I have a problem for my layout... it should be simple but I just can't get it right. It works on Firefox but not on IE. Problem: the div rightBar should be resizing to the content. If there is a lot of text, it should have the same height (therefore, I used top and bottom on an absolute positioning) the content is all right and it w...

How to make CSS - angles-image + background? And height - 100% or auto?

Hello everybody! I have already made CSS a lot of times, but did not work and a lot of glitches ... I will show picture - glitch: See picture - http://beta.areku-developstudio.org.ua/new.png See picture (this is necessary, as better quality): See picture2 - http://beta.areku-developstudio.org.ua/new2.png How to make CSS - angles-image...

Why my CSS is not working with the XUL app?

My xul app: <?xml version="1.0"?> <?xml-stylesheet href="main.css" type="text/css"?> <window id="main" title="MY TEST" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <listbox id="mainList"> <listitem label="Butter Pecan"/> <listitem label="Chocolate Chip"/> <list...

HTML CSS hover button navigation

Hello everyone. I am using an image button for navigation, because I want hover effects. I mean, I used button image instead of <ul> tag or <div> tag because I want hover effects, meaning when I hover on that image the image changes. That's why I use image button. But, I do not want to use images. I want to use <ul> tag and <div> tag bu...

What is the right way to use more than 1 CSS class on an element?

I can imagine it can get complicated fast trying to debug style issues when there are multiple classes associated with elements. Currently I'm using multiple classes but in a way that one type of class is for jQuery manipulation and the other is for style. So I can have an element <div id='myDiv' class'ActionControl SearchBox'></div> w...

Error message first appears at the top left then at center

i am using a label for showing error messages <div id="errorMessage"> <asp:Label ID="lblError" runat="server" BorderStyle="Solid" Text="" Visible="false"></asp:Label> </div> in the server side whenever i am showing error message Page.ClientScript.RegisterStartupScript(this.GetType(), "errorMesssage", "showError()...

How to add CSS code within if...else if...else Javascript statement

I'm trying to create an if...else if...else statement in Javascript that will change the style of a specific CSS ID based on a specific number. The if...else if...else code isn't the problem, it's just that as a Javascript novice (putting it lightly...) I'm not sure where to add the CSS code to execute it. From what I understand I would ...

Changing CSS with CLICK?

Is it possible to change the CSS when a link is clicked and return it to its normal state when another link is clicked, changing that CSS, as well? <div id="nv_wrap"> <a class="panel nv7" href="#item8"></a> <a class="panel nv6" href="#item7"></a> <a class="panel nv5" href="#item6"></a> <a class="panel...

How to contain the width of an element so it does not overflow the body, but IS visible?

I'm trying to have an element with a greater width then the body, but not cause horizontal scrolling. http://jsfiddle.net/hYRGT/ This hopefully demonstrates my problem somewhat. The #header contains the #imghead and is set to 960px width. What I want is the browser to 'think' the page is 960px wide. Because #imghead is more wide then ...

Width of absolute positioned DIV in IE quirksmode

I am working with a web application that is designed to run on IE quirksmode (it was initially designed a few years ago). I was trying to do something with absolute positioning in it, but it did not work as I expected. I have a simplified example illustrating my issue. Please see below. <html> <head> <title></title> </head> <body> <div...