I've this sample table and I want to make header row of table visible all the time. Header row should scroll with horizontal scrollbar and shouldn't scroll with vertical scrollbar.
table:
<div style="width:800px; height:150px;overflow:scroll;margin:50px auto;">
<table style="width:1600px" border="1">
<thead style="">
<tr>
...
Imagine the following code.
<body id="first_bg_layer">
<div id="second_bg_layer">
<div id="third_bg_layer">
</div>
</div>
</div>
Each layer has a different background that is static/repeated to achieve the desired effect. I need all layers to fill up the screen, otherwise the background will be broken. The background is sp...
Hello,
I have 2 nested divs, both have
#x{
width:400px;
height:400px;
background-color:#fff;
color:#000
}
#y{
width:200px;
height:200px;
background-color:#000;
color:#ccc;
}
<div id="y"><div id="x">Here lies a x value</div></div>
I want the #x and #y to have individual css properties, but that is not the case, #x overrides the #y...
There is a page with drop-down menu "Products" overlapped by next content in IE.
It works fine under Gecko or Webkit browsers.
http://orbitscripts.com/easily-manage-advertising-across-all-of-your-websites.html
z-index property makes no sence.
I have no solutions yet.
Thanx in advance
...
I am using a div with 2 elements inside and I want to position my 1st element to be vertically aligned top and 2nd element to the bottom of the div. The div is the right portion of my page and equal to the height of my main content.
#right {
float:right;
width: 19%;
background:#FF3300;
margin-left:2px;
padding-bottom...
I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in FireFox but in IE and and Chrome it doesn't work.
html {
cursor: none;
}
In Chrome I always see the mouse pointer. In IE however I see whatever cursor was last 'active' when it entered the screen. Presumably it's...
I'm using the jQuery UI Button widget to style all the buttons on my pages, but the button on a 'file' type input remains elusive. How do I style this button in general, and can I somehow apply the Button widget to it?
...
Hi, at the website I'm working on euroworker.no, I have a ton of CSS rollovers, that only load when rolled over, is there a way to force load these onLoad so that they don't flash when rolled over the first time? It makes the site look broken. I could use a <body onLoad...> but am not sure how to implement it.
Thanks.
...
Hi,
What's the point using this syntax
div.card > div.name
What's the difference between this
div.card div.name
Thank you!
...
I have used this effect before, everything is in order (As far as I see), but it's just not working. What have I missed?
Fiddle here
Sprite here
Thanks.
...
I am creating a UI with dojo that is emulting some aspects of an existing thick client application. I need to programatically put two different menu bars on the same page. I have successfully created the two menu bars using
new dijit.Menu();
new dijit.MenuItem();
and so on. Now I want to give them slightly different presentation style...
How do I get a red color for the line items shown as a circle?
/* This maps to ul */
.rich-datalist {
list-style: disc;
list-style-position: inside;
margin: 6px 0 1px 0;
padding-left: 18px;
}
/* This maps to li */
.rich-list-item {
padding-top: 5px;
padding-bottom: 15px;
font-size: 13px;
}
...
Hello,
Is it possible to remove the opacity inheritance from a parent to a child div?
Thanks
Jean
...
Hi, when I make in my site, it displays a tiny line, which can be hidden on some elements because I'm usually using them on CSS buttons, but I have an if statement that says if this show the result if not show a non breaking space.
How do you reset the to display nothing?
Thanks.
...
Hello everybody
I am using -webkit-transform (and -moz-transform / -o-transform) to rotate a div. Also have position fixed added so the div scrols down with the user.
In Firefox it works fine, but in webkit based browsers it's broken. After using the -webkit-transform, the position fixed doesn't work anymore! How is that possible?
...
I have a centered wrapper with following CSS:
div.wrapper {
width: 1170px;
padding-left:30px;
margin-top: 80px;
margin-bottom:20px;
margin-left: auto;
margin-right: auto;
position:relative;
background-color:black; }
inside i have a div with following css:
position:absolute;
top:-26px;
left:517px;
height:63px;
z-index:3;
inside of...
I'm using jquery to show animated MSN like window at the bottom of the page.
Jquery code:
$(document).ready(function() {
$(" .inner").stop().animate({height:'142px'},{queue:false, duration:600});
$(' .close').click(function(event) {
$(' .inner').hide();
});
$(' .inner').click(function() {
location.replace("somepage.php");
});
});
Th...
I hope this isn't too difficult, obviously you can call HTML tags such as fieldset, label and legends and also textboxes. However how does one call an asp:textbox, i have tried just textbox, asp:textbox, input.textbox but nothing seems to work. This is something that should be really straight forward to do and I can't waste any more time...
I just came up with this, it seems to work in all modern browsers, I just tested it then on (IE8/compatibility, Chrome, Safari, Moz)
HTML
<img id="my_image" alt="my text" src="images/small_transparent.gif" />
CSS
#my_image{
background-image:url('images/my_image.png');
width:100px;
height:100px;}
Pro's:
image alt text is be...
How can I achieve a smaller checkbox input, for use in densely populated lists etc. using standard HTML + CSS?
...