css

Why when I add the CSS file my list gets rid of "YouTube" item?

main.xul <?xml version="1.0"?> <?xml-stylesheet href="main.css" type="text/css"?> <window id="main" class="MainClass" title="MY TEST" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <listbox id="mainList" flex="1" class="MainListbox"> <listitem label="Twitter"/> <li...

Why this XBL example is not working?

This example is from this Mozilla's page. main.xul <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="main.css" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <box id="num" class="labeledbutton" title="Number of Things:"...

Replacing CSS classes with more generic ones

I'm currently working on refactoring a large amount of CSS, and a common trend I'm seeing is that several classes have been created for a very specific item on a page. Rather than trying to describe what they do, the classes are named things like "PressReleaseText", or "SpecLabel", etc. Most of these just define one item, like a font-siz...

Detect support for multiple background images?

I really want to make use of multiple background support (Webkit, Firefox 3.6+), but I would like to provide an alternative solution for browsers that don't support it. (IE, Firefox 3.5-). Is there any way to detect support for this CSS feature? Or will I have to resort to browser sniffing? EDIT: Javascript solutions are welcome ...

Is this possible with CSS 3

I have two DIVs one inside another. <div class="outside"> <div class="inside"></div> </div> The outside div has padding of 20px. The inside div has a lot of content and is scrollable. Is it possible to use CSS3's gradient(alpha?) feature to make the top and bottom of the inside div fade into the outside div when scrolling? or do I ha...

jQuery += a variable help

So I have VARIABLE = Math.floor(5*Math.random()); Then .animate({left: '+=VARIABLE'} but it doesn't work. In my css my div already has a left attribute. If I do left: newx + 'px' it sends it to the random number I generated, meaning it jumps to the top of the page. ...

CSS Opacity Messing with Other CSS3 Transitions

So I have a few hover links and I'm using the css3 transition effect on them. For some reason after I hover over a link that has opacity applied to it's element other links with the transition effect stop working. See the video so you can see what I mean: http://vimeo.com/14869503 - Password is stackoverflow for the video. I don't want t...

What scripts are available for fixing up styling bugs & shortcomings in IE?

There are several helpful JavaScripts and .htc behaviors that patch over the holes & buggy features in Internet Explorer's rendering engine. It seems most of them have some overlapping or incomplete feature support and it's hard to decide what to use: DD_Roundies: border-radius Fetchak ie-css3: border-radius, box-shadow, text-shadow em...

IE 7 display problem with 2 wrappers

I have 2 wrappers, one inside the other, as per html below. The first wrapper contains a tile which scrolls down. Wrapper 2 has an image 940 X295px. Works beautifully in IE5 & IE8, but in IE7 the footer jumps up to wrapper2 and the text extends down, underneath and below. This is my html: <div id="wrapper"> <div id="header"></div> ...

CSS controlling block element spacing.

I have a <div> that is filled with varying block elements (e.g. <p>, <ul>, <ol>, <blockquote>, etc.). I'm looking to control only the spacing between those child block elements. I also want there to be no spacing between the child block elements and the top and bottom of the parent div. I've played with a few solutions. The main one bei...

FixedSys & Terminal Fonts

How come the font FixedSys and Terminal ONLY work on FireFox and not on any other major browser? What's the deal? Is it because they are system fonts or am I missing something? Thanks ...

CSS - Specifiying fonts on Safari

OK so since FixedSys won't display in Chrome or Safari I make it switch to Lucida Console. It works for Chrome but for Safari I run into an issue. Unless Lucida Console is by itself, it WILL be to the font I said. If not -- then it won't work. Have a look at this picture: I don't know what font the first Hello world! is but it's weird....

Applying certain CSS to images over specified size.

Here's my predicament; I'm working on a simple iPhone site (it's a port for my blog). I have this issue; In order for my blog to at least look somewhat nice, I need to put a boarder around every image over a certain size, and then center said images. The site's content is literally an RSS feed displayed with some simple javascript and ...

Gmail not executing CSS in html mail (svnspam)

I am trying to setup svnspam. The setup and configuration went fine. But when the mails are sent to my Gmail id, they do not have the coloured diffs. Poking into the original mail through the Gmail view original interface I get to see the CSS like this: <html> <head> <style type="text/css"> body {background-color:#ffffff;} .fi...

Customizing asp.net webforms markup

I'm a new comer to the asp.net world. I hear a lot about asp.net mvc and it's advantage over webforms about the ability to customize the markup and css. I also heard that asp.net is much easier to learn than asp.net mvc so I decided to go for asp.net and webforms. My question is: what's the level of customization a web developer/designer...

iphone safari cannot cannot scroll normal webpage to bottom

i have a normal webpage with 960px width and, long height. but iphone safari able to scroll the page but cannot scroll until the end of the bottom of the page. i read that iphone using fixed position scroll. any workaround for a normal website to able to scroll until the bottom of the page? ...

Can you overlay a google map route on a custom background image?

What I'd like to do is overlay the route only on a custom background image. The background image is a png of olde-world style map, but I want real routes overlayed on top. The routes change quite a lot, so I don't what do have to do some photoshop work to generate maps each time a route changes. Is this possible? (also, I'd like the ...

How to center and size a HTML slide

Once again I hit upon my favourite HTML/CSS conundrum and am tearing my hair out all over. So this time I thought I put my conundrum to the experts on SO. Here goes... Imagine you want to present a slide show in a browser. The spec is dead simple: slide content should be shrink-wrapped by a slide frame. the slide frame should be ...

Break out of parent div's

When i have a div with position: absolute, and in it is another div with position: absolute the inner div will position in the frame given through the outer (wrapper) div. Now i want to create a class (css) called error_message that positions itself exactly in the center middle of the site, indifferent from where the it is called, so i n...

How much time should i put into validating my HTML and CSS?

Hi all, I'm making some pages using html, css, javascript and PHP. How much time should i be putting into validating my pages using w3's tools? It seems everything i do works but provides more errors according to the validations. Am i wasting my time using them? If so any other suggestions to make sure i am making valid pages or if ti w...