css

How to preload images?

I'm using a big Background image on hover which is set in css background {....} It takes time to load first time upon mouse over so I want to preload this background image. What is the best option to do this either using pure css or javascript or jquery? Pls don't suggest me CSS Sprite. ...

absolute positioned element clipping if position outside its parent item IE7

Hi Im trying to position an element so its slightly positioned outside its parent item. In IE8 it works but in IE7 the positioned element gets clipped. Here's my code HTML: <div id="parent"> <div id="child">text</div> </div> The CSS #parent { height: 40px; width: 400px; position: relative; } #child { position: absolute; width:...

Cufon selector problems

Hello StackOverflow. I am using Cufon (http://cufon.shoqolate.com/generate/) to replace some text in a menu. Problem is that I only need to style the first <li> of the first <ul>. I have tried using: Cufon.replace('#menu ul li > a', { fontFamily: 'Christopherhand', hover: { color: '#99c635'}}); With the > seperator, but it does not...

Column layout in HTML(5)/CSS

Is there a way in HTML5/CSS to have the columns layed out as shown below, and still have the text flow correctly? ###### ###### # C1 # # C2 # # # # # ###### ###### ###### ###### # C3 # # C4 # # # # # ###### ###### ###### ###### # C5 # # C6 # # # # # ###### ###### Just to clarify - I want to be able to w...

how to use a specific font folder in my web site ?

Hi All, I have font folder of volta regular with license but i dont know how to use it in web site. Coz i dont want to replace it while user's machine don't have that font please tell me any solution to sort out this problem, Did have to upload it on server ? Thanks Mayur ...

Div's are not filtered as :hidden when display:none; is appended as style

Hey folks I have some simple HTML: <div id="selectorContainer"> <div id="chainedSelector" style="display: none;"><% Html.RenderPartial("ProjectSuggest/ChainedProjectSelector"); %></div> <div id="suggestSelector"><% Html.RenderPartial("ProjectSuggest/SuggestControl", new SuggestModeDTO{RegistrationMode = Model.RegistrationMode})...

How to create gradient background with CSS in Firefox < 3.6?

hi! :) anyone know if is possible to reproduce this effect background-image: -moz-linear-gradient(top, #666666, #000000); background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #000000),color-stop(1, #666666)); also on ff < 3.6? im tryin' to generate a gradient background without images! thanks a lot in advance ...

absolute positioned element not getting 100% height

hi here's my code (a bit simplified) <thisIsADiv id="wrapper" style="width:960px; margin:0 auto; position: relative;"> <img src="img/bg/wrapper.jpg" alt="" width="960" id="bg" style="position:absolute; top:0; left:0; z-index:0; height:100%;" /> <some more stuff></stuff> </thisIsADiv > here's my problem: if i give my image 100% hei...

drupal themes: how do I include several css files / js files on my theme's .info file?

I'm creating a new Drupal theme. Until now, I only needed to include a single css file and a single js file. So my theme.info file had something like this: stylesheets[all][] = css/style.css scripts[] = js/script.js Now I must include jquery and jquery-ui in order to use a calendar date. These come with 2 new javascript files, and 1 ...

Which PNG Fix will work in this condition?

I'm working with client's CMS and it's adding images like this and i can't change this. I tried IE7.js but it's not working <img src="~/imagefolder/CF88B05B445A4D008806C8B3E2830679.png?w=400&h=300&as=1" /> ...

how to hightlight a div if the page.isvalid=false.

I wanna high light particular div when the page.isvalid=false. on the pageload i am able to get display the error message. But the issue is that i am not able to highlight the control which is required. I have a js function which sets the error class to the div. Its working fine when i click on a button. On the page load i wanna set thi...

Background image is not displaying in IE6 and IE7

I Have 3 divs HTML MARKUP <div class="top-content-wrapper"></div> <div id="content-wrapper"> </div> <div class="bottom-content-wrapper"> </div> Applied CSS on .top-content-wrapper { background:url("img/white-box-top-bg.gif") no-repeat scroll left top transparent; height:10px; margin:0 auto; padding:0 30px; width:686px; } #content-w...

How can I layout a sidebar or pullquote?

I have 4 divs in a fixed width layout: a, b, c, and d, and they are ordered in the html like this: <div id="a"> </div> <div id="b"> </div> <div id="c"> </div> <div id="d"> </div> Using CSS, I want them to be laid out with divs a, b, and d in a vertical column, and div c to the right of and top-aligned with div b, like this: aaa aaa a...

How to make inline png <img> transparent using css?

How to make inline png transparent inside div? using css <div id="report'> <p> some text </p> <img src=transparent.png" /> </p> </div> this is image for example . Other than ball i want to make transparent other white area. Which is looking grey in IE6 I want to do in css like this div#report img {.....} is it possible? Edit: ...

Styling an Input Field

Hello When I try to alter the CSS for the input field named "title" below, which is classed by "submissionfield", the position changes, but the height, length, and font of the field do not change. How could I make the height of the input field "title" 22 px, the length 550 px, and the font Times New Roman? The CSS below does not do it...

Lightbox, floating a close button outside of an iFrame

Hey, I have decided to reword this question (as opposed to creating a new one)... I have a Lightbox (Colorbox), which opens an iFrame with basic HTML content. In fact, here is a picture: I would like the Close button to be where the Hollow White box is. The Lightbox (Colorbox) CSS is as follows, nothing I seem to do works. :( (The C...

Progress Bar Filling - jQuery Implementation

I'm implementing my own Progress Bar using jQuery. My question is how can I fill (for example) only 30% of it with a background ? What are my options ? Basically, the Progress Bar is a simple div with rounded corners (-moz-border-radius). I'm using Firefox 3.6.3. [Update] I tried this example. How to force the right side of the filled a...

How to use CSS to ensure items remain offscreen even if window is resized?

I am trying to implement a type of slider using jquery. However this question is about the CSS involved in trying to achieve the functionality. My site design occupies a central column of width 960px. Within this layout there is a central element, that I wish to slide right, on click of a "next" button, and at the same time, another ele...

how to place div next to centered div css

I have a search page that contains a textbox for the search and a link that says "advanced search" similar to google. I am having trouble centering the textbox AND having 'Advanced Search' to the right of the textbox. Basically I want the layout to look like googles See here This was my shot: <div style="width:650px; marg...

Comment Form Text Area Breaks in IE7 and IE 8

On Single page the comment form of Text area is moves Forwarded with threaded comment. Please click on reply to have a look. A wordpress site. demo sites example : http://dikkers.rtcamp.info/?p=205 ...