So the problem im having is changing my #scroll top:value with the pixel (px) extension.
#container {
height:100px;
overflow:hidden;
}
#scroll {
position:relative;
top:0px;
}
<div id="container">
<p>
<a id="up">Up</a>
</p>
<div id="scroll">up down blah</div>
</div>
$(function(){
$("#up").hover(function(){
var topVal = $(...
Hi there,
im trying to get some background images around a content div. Thing is, the content div should have a flexible width (no problem). The background pics should always be left and right attached to the content div. BUT: the horizontal scrollbar should only be triggered, when the user reduces the window to the width of the content ...
Hi All,
Say I have a class name person with foll style in css-
.person {
font: 10px Arial black;
}
now if i want to assign as h1 tag to this class so for any instance of h1 tag in class person i want the some styles to be processed
i tried
.person h1 {
color: red;
}
but its not working.
Iam bit confused with the syntax
...
Hi, i was wondering if there is something like text-shadow for DIVs, we all know that text-shadow is only for dropping a shadow to the text, but i want a shadow for a complete DIV.
any ideas?
Thanks
...
I have a design like that:
All my auto centered content has the following CSS:
width: 960px;
margin: 0px auto;
Inside this auto centered content is a DIV-Element that should have a width of the full browser width.
What's the best solution to make the 100%-DIV?
position: absolute /* or fixed */ is not that what I want to have,
beca...
Hi All,
how can i detect whether javascript is disabled using prototype library. I dont want to <noscript> use tag but something that prototype offers.
Thanks
...
A web designer has created pages for us with IE-specific comments. Consequently, certain stylesheets are only included if the user is using a specific version of IE:
<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" href="/styles/ie6-fixes.css" media="screen" />
<![endif]-->
The same technique has been used for JavaScript file...
I'm trying to use jQuery to find the image height of the first "grand children" of a container, then set the container to that height. But, I can't seem to pull the image height attribute - getting the src works. Any ideas? Is it just trying to pull the heights via CSS? How do i get the "real heights" I can't input the width and hei...
I'm a huge fan of Markdown (using it in nearly all of my PHP projects) but not a fan of its limited output. Much of the rendering is a bit too simple, and doesn't really allow me much control or freedom regardings its layout. For instance, I can insert an image:

This is my image!
But that will simply be...
I want to semi-permanently (temporarily but it lasts past a refresh or following a link) browse without CSS in IE6. There doesn't appear to be a way to permanently disable CSS without messing with the registry. Can I make a local style sheet that sets all styles to none, for example, and effectively "turns off" css while i browse? Wh...
I am trying to make box to be fixed in the lower right border of the page and doesn't move with the page scrolls down. But it's not working for me dunno why. Here is my code:
<html>
<head>
<style type="text/css">
.tooltip {
width: 200px;
position: fixed;
top:auto;
bottom:0px;
right:0px;
left:auto;
}
</style>
</head>
<body>
...
The header in mozilla lab's Bespin anouncement has a very nice antialized font put there with css (which is not a standard font). Anyone knows how did they do it?
Bespin Embedded 0.6 released! Now in two great flavors.
http://mozillalabs.com/bespin/2010/01/15/bespin-embedded-0-6-released-now-in-two-great-flavors/
...
i have this code
Code:
<div id="container">
<div id="products_content">
<div id="products_page_header">
<div id="products_page">
<div class="post">
<div class="entrytext">
some text
</div>
</div>
</div>
...
I'm having an issue where I see my active and hover class being applied in Firebug, but it's not taking precedence over the existing styles.
So, if my element has background-color set, the active and hover background color don't change the element.
How can I fix this behavior?
...
I just wrote a sample page with a corner banner and tool tip. Everything is working just fine with firefox. But in IE things are not working correctly. I surfed the internet and found that IE doesn't support position: fixed.
So does anyone know how to work around this problem ?
Here is my source code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD H...
I'm developing an application that uses ubiquity-xforms. Previously I had been serving the pages up as text/html with the XHTML 1.0 doctype.
If I switched the mime-type to application/xhtml+xml, I would see a pretty big performance improvement, because the javascript could use the get____NS() functions, instead of what it's doing now (s...
There are lots of pages I need to work with , the good thing is they all have the same structure. And finally I want to achieve a visual effect like this.
<tr><td style="width:15%;">label text</td>
<td style="width:35%;"><input type='text' style="width:50%"; /></td>
<td style="width:15%;">label text</td>
<td style="width:35...
Should i use Width, height, margin, padding, line-height in em also if i'm using em for text sizing? is it good for accessibility?
...
Hi all,
I've been working on a wordpress theme and just now noticed that the width of the page is more than 100%.
I know that posting the code here would be helpful, but I don't know what portion of the code is the culprit. Whether it's a wierd HTML issue or CSS or otherwise.
I've tried removing the javascript links in the header as ...
Not sure if this exists as I have been googling all around and can't find anything great. Thought I would post this question prior to redesigning the page I am working on.
Is there anyway to fix the transparency problems with .png's in IE6 for both image tags and background images?
Please tell me there is a magical javascript that jus...