css

Adding height:100%; to elements gives me a scrollbar.

Hello Here's my html as basic as possible: <div class="wrapper"> <div class="left">foo</div> <div class="middle">foo</div> <div class="right">foo</div> </div> And here comes my css: * { padding: 0; margin: 0; } html, body { height: 100%; } .wrapper { min-height: 100%; } /* left, middle and right have float:left and a wid...

jQuery Cycle Fade In/Out Help

I've been using this script http://jquery.malsup.com/cycle/ And using the "Fade" transition. (Top row of the page on the right.) I need to edit the script so that the image fades all the way out to a white background and the next image fades all the way in. Right now they're sort of fading into each other. I've looked over the page and...

Selector for pressed button

Is there any option, or special selector to change the style for a pressed button, what I mean by that..when a user clicks a button I want to change the style for that button? Is there any option to do that like: :focus or only with javascript click/focus event? ...

CSS non-stretching box

Hello all. I have a question about my layout. I have a setup something like this: <div id="container"> <div id="body"> <div id="item"> </div> <div id="item"> </div> </div> </div> And I want the body box to stretch with the amount of items I put in it but it doesn't. anyone know how to fix this with css. ...

Html Tableless form

I have a section of an html page that I want to display in a table-like way. I keep hearing not to use <table> for layout. And I get the general reasoning. 1) mark up becomes bloated, so it takes longer to download, 2) a table is rendered all at once(so it might delay loading until all of it is read) 3) probably a myriad of other rea...

sifr not replacing font

Hello, I am trying to use sIFR to replace the headlines (e.g. The Tour of A Lifetime) on this page: http://tanciltown.com/ten-chimneys/ The font I want to swap in is Verlag by hoefler & frere jones. I had this working the other day but it suddenly stopped working: the font does not replace. All the js/css/flash files are linked corre...

Hide browser scrollbars

If I have two DIV's on my webpage which are larger than a browser window, than I have a horizontal scrollbar in my browser. What should I do to hide this browser scrollbar for the first DIV and not to hide for a second? Like I have two divs: 200px and 300px width. I want to hide horizontal scrollbar if my browsersize 201-299 px. 250px ...

use css attributes "filter: alpha(opacity=70);" and "background-image: url(image.png);" on input box

can get both working individually, but am unable to get them working together. this is for use in a windows sidebar gadget. form: <form name="llPeople" action="URL" method="get" target="newwindow"> <input id="phonebook" class="blur" type="text" name="peo_name" size="15" value="Search Phonebook.." onFocus="document.getElementById('...

Where can I get free HTML/CSS templates with subtle JQuery animations built-in?

I often use www.freecsstemplates.org for quick HTML/CSS websites and often find myself spending time manually building in little JQuery effects to them, downloading the necessary libraries, resolving conflicts, etc. Does anyone know of a similar collection of free HTML/CSS templates which have JQuery built in, i.e. all local jquery file...

Jquery and the :active selector

This is my code: $('#ss a:active').parent().addClass('ss-active'); I guess you can tell from my code what I want to do, but it's not working, how can I do this? and I also want when the user removes the mouse from the button to come back to normal state, what I mean by: "the user removes the mouse from the button" is that the user can...

ASP.NET Vertically wrapping a list generated by a repeater

I've got my repeater generating a list of links that need to appear in a certain order. Meaning I need my list to appear like so -Item1 -Item4 -Item2 -Item5 -Item3 Every solution I've found involves knowing whats going to be in your list and setting classes where the list should break. My issue is that it could be anywhere from 1 to 1...

How can I prevent the width changing when using jQuery's slideUp?

I have a test-case here: http://www.jsfiddle.net/kPBbb/ Once the content has .content, the .wrapper shrink-wraps itself, presumably because the .content is display: noneed. I would like the .wrapper to behave as if the .content were still there after the animation, maintaing the initial size. The .wrapper has been float: lefted in ord...

Probobly a rather simple CSS Problem

Hey, I have this CSS-rule to get the "pushed-down" effect on pressed links: a:active { position: relative; top: 1px; } Now this works as expected, however I want to write a rule that disable this on linked images as this one: <a href="#"><img src="..." /></a> Is it possible? Thanks. ...

how to set zoom level using css

I have been developing my webapp with a certain zoom level on firefox that I set initially (using ctrl+wheel). Now when tested on a different PC on firefox, the default 100% seems to be too big. Can I set default using css? ...

Block Level Elements in <a> Tag, Validation vs Usability

I have often wrapped block level elements with <a> tags in order to make the whole group clickable. For example, say I have a list of events: <ul> <li> <a href="#" style="display: block;"> <div style="float: left; display: inline;">12/12/2010</div> <div style="float: left; display: inline;">Some event...

Override Anchor > Image Behavior with CSS

Note: I asked a similar question 5 minutes ago, however this is not the same... I have this CSS-rule to underline links without striking through any of the letter's "foots": a:hover, a:focus, a:active { color: #3b234a; border-bottom: 1px #ccc solid; } Now this works as expected, however I want to write a rule that disable thi...

How to manage multi tenant web portal css using Asp.Net MVC

I am designing a multi tenants web portal application using MVC. Tenants will be identified by URL or tenant id. We are going to have a default set of skins and themes but per requirement each tenant can have its own skins and themes. What is the best way to handle/attach css for multi tenant web portal application? ...

Position element fixed vertically, absolute horizontally

Here's what I'm trying to accomplish: I need a button which is positioned a certain distance from the right side of a div, and is always that same distance from the side of the div no matter the size of the viewport, but will scroll with the window. So it is x pixels from the right side of the div at all times, but y pixels from the to...

Will the browser cache a CSS background image if it's not used?

When you have two rules like this: .foo { background-image: url(foo.gif); } .foo { background-image: url(bar.gif); } and have <div class='foo'>Foobar</div> Will your browser cache both, or just the one actually getting displayed (bar.gif in this case)? Is this true in all setups? (the rules being in different files, !important ...

Buttons positioning in HTML form

Here is my HTML: <tr> <td> <div class="fileinputs"> <input type="submit" name="submit" class="submit" /> </div> <div class="fileinputs"> <input type="file" class="file" name="uploadedfile" /> ...