I have this very simple HTML page, and I'm trying to get the CSSRules of #poulet, but when I'm accessing the documents.styleSheets[0].cssRules I get this error in Chrome v5.0.375.55:
Uncaught TypeError: Cannot read property 'length' of null
Here is what my code looks like:
HTML FILE
<!DOCTYPE html>
<html lang="en">
<head>
<link re...
I am modifying a skin for the CKEdit component so that the toolbar is hidden unless clicked. To do so, I moved the toolbar collapser to the row below it using position: relative and top:18px.
My goal is to have the parent tr of the anchor element a height of 2px, but keep the anchor at 11px. Is this possible? I cannot alter the DOM, j...
Over the years, I've struggled with this. This year, there might be a solution.
I need a header, content and footer.
I would like the footer to be at the bottom of the page, the header at the top, and the content in between.
I would like the content to have a scroll bar.
Q: Is that too much to ask?
...
Here is the site I'm currently working on: http://willcrichton.net/
If you click on the arrows on each side of the hexagon in the middle, you can see that it transitions left and right using jQuery + jQuery Cycle + jQuery Easing. However, you can also see that it is rather ugly -- because I'm using hexagons and not squares and because d...
Hi,
I should print web-pages of website with jqgrid , Jquery calendar+ other Jquery ui+background images etc.. in server side its build with Zend Framework.
I don't have experience and knowledge in web page printing, but i get this mission in my job.
I need:
Good tutorials or book (i read about background images problem) to study ...
If you have an HTML page with a class in an element, for instance <div class="myClass"> would it be best to refer to it in the CSS as .myClass or div.myClass?
Thanks in advance!
...
<head>
<title>Water Bureau</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/css/main.css" type="text/css" media="screen" title="Main CSS">
<link rel="stylesheet" href="custom.css" type="text/css" media="screen" title="Custom Styles">
<script language="JavaScript" src="/shared/js/...
I have a fluid layout with DIV's of different heights and widths, and I'd like them to be aligned by lines, kind of like when you do a search on istockphoto, except aligned to the top:
image here-->http://i207.photobucket.com/albums/bb121/jpbanks/Capturadepantalla2010-06-02alas1902.png
I tried floating all the DIV's to the left, but th...
So I have this text generated by a javascript plugin.
<a class="className">Text</a>
a.className {
background: url(images/a-image.png) no-repeat;
}
But the "Text" shows on top of the image...
Now... with any respectable web browser, I can use color: rgba(0,0,0,0); to solve the problem, but IE7 doesn't obey standards of any sort.
Any...
I have 3 spans inside a div.
text-align:center isn't working (tried on the parent too)
text-align: -moz-center neither (on ff2)
i have to use spans
no floats
-moz-inline-box or -moz-inline-stack ?
with -moz-inline-block it's working but the 2nd and 3rd spans clear left…
Anyone got an idea? (fixing #6 is an alternative)
...
I've been developing a web app for a few weeks now and ended up with about a 1000 lines. I am sure not all the selectors are being used and am trying to clean it up. At the same time, I don't want to do it manually for obvious reasons.
Is there a safe and an efficient way to remove unused selectors? For this, am I supposed to navigate ...
I've been using the in-line styles approach as recommended by GWT's UiBinder documentation. I'm puzzled, though, about how to use CSS pseudo-classes with UiBinder; for example, suppose I would otherwise (without UiBinder) have this CSS rule:
#myLink:hover { background:blue }
Can I implement that rule in UiBinder?
...
I'm using the Blueprint CSS framework, and I want to know how to create overlapping divs. If I try to use an absolutely positioned div inside of a relatively positioned div, it messes up the rest of the styling of the div by Blueprint. What is the correct way to do this?
...
I have a element
<select name="dropdown" id="dropdown">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</select>
Now if I add a CSS line-height property to the dropdown, it doesn't work. How would I use jQuery to style this? I prefer not to use plugins, because ...
I have a small problem and I don't think what I want to do can be achieved with just pure CSS, but I figured I'd ask anyway.
Basically, I have one DIV which contains a hyperlinked element that is smaller in size to it's parent DIV. So in effect I have a square within a square with the inner square being the "hit area". When I mouse over...
If i include blueprint all my link in page looks like (if it was link on google.com)
google(http://google.com)+ all unerline but but if i remove blue print links looks fine without brackets ?
what it can be ??
...
$($("#myDiv")).append("<b>Hello</b>");
how can i apply to mydiv display:none
...
I am using a background image to display as a button. The button shows up well in all versions of firefox, chrome, opera etc. However, the image fails to render itself in IE8. Only the image is not being shown, some of the other class styling gets applied such as width, height etc.
Even more confounding is that in another page(though a ...
Hello! I have some text in div, and I want it to wrap to fit document width (without any scrolls!). I don't want to have word-break, like div {word-wrap: break-word;}
For example (this is what I want to get):
hello world! today is a
good day.
But not:
hello world! today is a good day.
or:
hello world! today is a go
od day.
...
Ok, I have a HTML page with jQuery included.
I have a CSS file with a good load of lines in, I would like to read all styles for a given element from the external CSS file... Not the inline styles...
I have the following code (which looks like it should work...):
var styleProperties= {};
var getCssProperties = ['width', 'margin', 'hei...