css

Are "div > p" & "div p" same?

Hey, I've an obvious question. For code like: <div> <p>We want to format this text :)</p> </div> Some people use selector like: div > p { something } And others: div p { something } What's the difference in this case? In my opinion - none? And by the way, isn't the descendant item always a child?! What's the dif...

drupal conditional stylesheet problem!

hi i'm trying to create a new drupal theme which has many different pages and many diffrent style pages and many css files. The template is for a specific website with specific modules and ofcourse each module has it own template i am developing my theme under zen. in template .info i had defined manay css files and my problem is: I WAN...

Injecting CSS rules into the page in Android Browser

I'm writing a JavaScript to inject a new CSS rule into pages in Android browser in order to display some text in a custom CSS font (after some replacement). Here is how I tried to inject the CSS rule: var css = '@font-face {font-family:"font"; src:url(http://www.example.com/font.ttf);} si{font-family:"font"}'; if(document.getElementsBy...

CSS font-weight thicker than 900?

Hey, I have a panel which can be expanded or minimised through a vertically centred link with a < or > symbol as the link text. At font-weight: 900 this does not stand out much, even with a large grey background around it. I do not want to use an image and, at the current font size, both symbols currently take up the maximum width of th...

See dynamicly generated DOM and CSS

This address is has a console javascript that i build with a custom jquery plugin. I wan't to extract the exact DOM and CSS after i fill some commands into it. Since the CSS and the DOM is generated at Runtime, i'm unable to get it. So my question is, how can i see this DOM and CSS that is generated at runtime? Thank you very much. ...

What is the means of terms "Building Block" in javascript?

for example title of this article is "The JavaScript Building Blocks: Data Types, Literals, and Variables" http://www.informit.com/articles/article.aspx?p=169501 What is the means of terms "Building Blocks" in JavaScript? Is it related to box on web-page, CSS box model? ...

How Do I mix colors using CSS?

Hey guys, I want to have a box with two colors with silver on top and it should slowly fade into white, just as Apple's homepage background. How do i do that? Thanks as always. ...

Which letter of English alphabet takes up most pixels?

I am trying to do some dynamic programming based on the number of chars in a sentence. I need to know which letter of the English alphabet takes up the most pixels in the screen??? ...

What html tag best to use with sprites

I would like to use sprites to display my icons. I created image and CSS, now I need to add class to my html element. What is the best HTML element for that? <div> works fine, but of course it spans across entire space and wraps. works only if I put something in it. Here's my CSS .sprite { background:url('/i/sprites.png'); ba...

Appending text to a link on Rollover.

I have scoured the tubes to try and find a way to do this, but I just want to add a > greater-than sign to my link when I roll over it. I don't want to use images, I'm trying avoid tables, etc. See, I'm doing the front end, and I'm a back-end guy. So I understand the concepts, just don't put them into practice. Here is the code, not s...

How to wrap text using CSS?

<td>gdfggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg</td> How do I get text like this to wrap in CSS? ...

What throws Internet Explorer into quirks mode ?

I have created a webpage (http://www.snow4life.yum.pl) that was rendered properly in firefox, chrome etc. Of course dumb IE complicated things, because it enters quirk mode automatically, even though doctype is properly set and site goes through w3 validation (there is one error of missing some char, but file was cleared in hex editor). ...

css - horizontal menu - background-color

I have a horizontal menu. I want to have a border around the menu (not the entire-row, only the space menu is covering). When I put border on ul, it covers the entire row, when I put border on li, it has border between menu items as well. <ul id="menu" style = "text-align:left;"> <li>...anchor stuff... ...

How to select all a pseudo-classes in CSS?

Hi, I've a button and I wanted to know if it is possible to make the css bellow shorter. .button a:link, .button a:visited, .button a:hover, .button a:active { color: #000; text-decoration: none; } I mean maybe: .button a:* { color: #000; text-decoration: none; } Maybe there isn't any shorter way, but I just wanted...

Can I put displayable text in my CSS file ?

Can I put text in my CSS file , and have that text be visible in the displayed HTML? ...

How to make a CSS rollover image? (sprite)

I'm just trying to use this little trick I saw in one of my web design magazines to make a little image rollover but I'm having just a small bit of trouble. My attempt was a terrible fail lol. I just want to see the top half (42px tall) and then the bottom half on rollover (-42px obviously) width is also 42px. Could someone write someth...

When divs don't resize with content?

I'm working on some complex design and have a silly question once again :) Well, let's say I have a div and some content inside, like: <div style="background-color: #fff; width: 1000px; margin: 0 auto;"> <img src="img.png" /> <p>Blablabla :)</p> </div> <div style="background-color: #000; width: 1000px; margin: 0 auto;"></div>...

Bullet Points Positioning with Arabic RTL direction

Hi there, I am using custom bullet points on a website. Now this site will also be available in Arabic. .post ul li{ color: #555555; background: url(images/ico-bullet_round.gif) no-repeat !important; background-position: 300px 6px !important; padding-right: 15px !important; padding-left:0 !important; direction:r...

Website Page Layout Width

Hey guys, I have designed the home page for my website. Now only specifing the with is remaining. After debating a lot, i decided to go with a fixed page layout. How do i do that? How do I put everything within 750px (or whatever you suggest)? ...

Stair Stepper Drop Down

We're developing a new site and we added some list drop downs. The client looked at it on his Dell running Windows 7 and IE8. Unfortunately, it's doing an odd stair stepper effect with the lists when they drop down instead of going straight down like they should. I don't know whats going on. Here's the site Love-Wise. Thanks :) ...