Hi,
I have the following code:
<HTML>
<head>
<style>div{border:dashed 1px silver}</style>
</head>
<BODY style="background: #fff;">
<div style="position: absolute; background: #0f0; width: 256px; height: 96px; overflow: scroll;">
<DIV style=" display: inline-block;position: relative;top: 64px; left: 32px;">
<DIV style="width: 18px...
I am in the process of dicing and slicing a psd layout from a designer. The design is based on the 960 grid system and consists of multiple boxes (a 960px box for the top menu, 2 460px boxes for the 2 content areas, a 220pixel and a 720 pixel for another content setup option etc). All these boxes are based on a solid background color (bo...
If you go to google.com, you notice the menu on top slowly appears once you have mouse over the page. I was wondering what does Google use to control the fading effect?
[edit] since I don't use jQuery, I don't want to include it just to use this feature
...
This is my css:
.sub-content-border {
background-image: url(/images/borders/sub-content/top.gif);
background-repeat: repeat-x;
background-position: top;
}
.sub-content-border div {
background-image: url(/images/borders/sub-content/bottom.gif);
background-repeat: repeat-x;
background-position: bottom;
}
.sub-content-b...
im using a image preview that allows me to add css styles to the previews that pops up.
now, some images are larger than the screen so you will just see a portion of them, while other images are very small so you don't have to resize them.
is there a way to only resize the larger images and not touching the smaller ones, eg. only resiz...
Maybe I'm having a brain fart today, but I've been having this problem for awhile now.
Anyways, given this code:
<table>
<tr>
<td><img src="" /></td>
<td valign="middle">Text</td>
</tr>
</table>
This renders a format with an image to the left, and some vertically centered text to the right of it. This works because then I can...
I have a div which contains an a with some border. See:
http://webnumbr.com/all
It works great in FF and IE, but why doesn't the right hand side render in Chrome? Is it invalid CSS? (testing in chrome OSX if that matters)
...
I have a container that looks like this
<div id="container">This container has a <a href="#">link</a> in it</div>
I want to hide everything in it except the link.
I've tried
#container {display:none;}
#container a { display:block; }
But that doesn't work.
It's a user style, so I have access only to the CSS. No Javascript. No m...
Hi All,
I am working on a small application below where there is a collection of list items all list items should be within the box no matter how many they are like they can be on the second column. Also I want to keep a limit on the number of list items that can be displayed like not more then say 10 so the moment there are 10 items th...
Hi all,
I have my site wrapped in one big DIV, called wrapper, that starts just after <body> and ends right before it. I.e.
<body>
<div id="wrapper">
... website ...
</div>
</body>
I have the following code styling #wrapper
#wrapper {
width: 960px;
margin: 0 auto;
padding: 0 7px;
background: #c1cca0 url(images/fade.gif)...
On a website I'm creating, I have about 100 various thumbnails (64x64) that get displayed at different times. On some pages, only 5-15 thumbnails may be displayed. On others, all 100 are loaded.
I'm considering using a technique like CSS sprites to display the images. That is, rather than have image tags for each thumb, do something lik...
So I have a signup form on the top of my website and in safari/firefox it looks perfect but on ie7 for some reason it is pushed down so it does not look right. I tried removing all padding/margins on all of those elements but it still seems like there is something pushing it down when that happens. Does anyone know why this is happening....
i tried to search in google but no one talked about this.
i want a css solution to create a liquid tag box like the orange ones in this :
http://www.mixx.com/stories/10402914/haiti_us_gov_t_grants_matching_3_to_1_donations_to_worldvision_for_haiti
so, even if the word is long the tag box will fit it.
i want the same shape
Thanks
...
Hi All,
I am trying to align an image and some text together. If you refer the below code there will be and image and some text( Name and Age) I want both of them to be next to each other. I did try float: left but still no luck.
Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/x...
Using CSS Style Sheet
In my web page, i have two class like menu and leftside. In menu i have the ul, li classes. i want to use a ul, li in left side also, but the problem is if i used the ul, li, it was matching with menu ul, li
ul -underlist, li - list
I tried to change the code of sheet,
my css code.
#leftside{
float: left;
...
Hi,
working on a very small site which loads in one go, so there is a div which holds all the background images, and on top of that (i.e. higher z-index) there is a content div which holds everything. I can switch backgrounds easily based on what content is selected.
Unfortunately, I noticed if you launch in a small window so that scro...
Which way is prefer ed and why to use for print, another css file with media="print" or @media print {....} in same file?
...
My sample widget:
class myWidget extends sfWidgetFormTextarea{
public function getJavascripts(){
return array('my_widget.js');
}
public function getStylesheets(){
return array('my_widget.css');
}
}
Form template:
<?php include_javascripts_for_form($form) ?>
<?php include_stylesheets_for_form($form) ?>...
In my website, I've got an ol with decimals (list-style-type:decimal). In Internet Explorer, when the list gets over 9 the decibel starts at 0 again.
This is how it should be displayed, and how it's displayed in Firefox:
This is how Internet Explorer 7 and 6 displays it (IE8 not tested yet):
So the list starts at zero again.
CSS of t...
I have one content page where there are links to different documents like .doc, .docx, .ppt .pptx, .txt.
I want to apply/add class dynamically not manual. like as per the link content.
<h3><a href="document.pdf" class="pdf-file">Document.pdf</a></h3>
.pdf-file {
background:url(../images/pdf-file.png) right center no-repeat; padding-rig...