css

css, underline, possible to increase gap

Using css, when text has 'text-decoration:underline;' applied, is it possible to increase the distance between the text and the underline? ...

Making CSS url() relative to document

When it comes to CSS the following rule applies: Partial URLs are interpreted relative to the source of the style sheet, not relative to the document. But here's my problem : I have different websites that use the same CSS file. While they use the same layout, the actual images the CSS references are different for each one of them. ...

DIV absolute position works in IE, Chrome but not FF

I wanted to set a 2-tone, full-window background to my page: <body> <div style="position: absolute; width: 50%; height: 100%; top: 0%; left: 0%; z-index:-1;background-color: 96C3FF"></div> <div style="position: absolute; width: 50%; height: 100%; top: 0%; left: 50%; z-index:-1;background-color: BEC0C2"></div> <div id="mainDiv">...</div>...

Is there a way to show alt="text" as a mouseover tooltip in firefox like IE does automatically?

I don't want to repeat alt text in title again? is this possible with any javascript , jquery, css solution? or any solution which can disable to show alt=text and enable title=texr and as a tooltip? ...

Is there a way to create a full width horizontal navigation without using a table?

I have a horizontal navigation with variable width 'buttons'. I would like the navigation to span the entire width of the containing div. I was able to accomplish this if I put the navigation in a table. You can check out this example. The table cells will resize according to how many there are and the width of the text inside them. Can...

CSS Framework Recommendations

When I say CSS Framework, I don't mean a reset or a grid. I mean a framework like xCSS or csscaffold or compass. I've been doing CSS for a couple of years, but has not had a lot of exposure to frameworks. Does anyone have any experiences working with them? What are some potential downsides? What frameworks are popular/recommended? Than...

vertical align for text fields

Hi all, how can I align (vertically) some text input fields with CSS? eg in the following: <form action='<?= $_SERVER['PHP_SELF']; ?>' method='post'> <p><label for='username' class=''>Username:</label> <input type='text' name='username' id='username' class='field' value='' tabindex='10' /></p> <p><label for='password' ...

How to build a simple CSS layout that expands to the viewport?

I am trying to build this very simple (visually speaking) layout using HTML/CSS that you can see in the wire frame below: /------------------------------------------\ | | | header div | | | |-----------------------------------...

Get a deactivated scrollbar in Firefox

I have a Javascript tabbed dialog whose pages have different heights. Some of them are taller than the browser window. In Internet Explorer, there is always a scrollbar to the right. When it is not needed, it is greyed out. The page dimensions stay the same and there is no problem. In Firefox, the Scrollbar is hidden completely when no...

Changin a div border with javascript.

I have created a div programaticaly using. var Element; Element = document.createElement('div'); Now I want to change the right and bottom border to "#CCCCCC 1px solid". I don't want to use a library for this and using CSS classes is not possible. ...

Is it possible to make text display vertically with css?

L i k e t h i s EDIT Can you answer by a demo? EDIT2 For those of you don't know what kind of effect I need,see here(this one only works in IE,which is basically what I want). I don't need the text to rotate.Only vertical is neccesary! EDIT3 effect image: ...

CSS Problem with Overflow with div

I want to use overflow on a div to show all div and image, and text to but for this example i used only images. i need a horizontal scroll, if i only use image its work well with the white-space: nowrap; css but if each images are in a div the sroll disapear and images don't show all. Example 3 here the first exemple work if i give a ...

Creating a CSS-rule to work for both a one and two column layout

This is what I'm trying to do: (Larger image.) When the <nav> element is present in the design, I want it to look like the example below. Is it possible to do this while the #content div has got a percentage value set? I'm just curious to see whether this is possible without using two different styles for the #content (both with diffe...

How should I create a web interface for my application?

First, a little background: I have written a little application in python with SQLAlchemy, which is roughly an improved RSS reader: it selects links that should interest the user, and shows them to him. I already have a very simple command-line interface, and I envision a variety of interfaces: web, instant-messaging, desktop... For now...

Display image outside <div> where overflow:hidden?

I'm using Ganesh's very wonderful jCarouselLite jQuery plugin to display a scrolling series of thumbnail images at the top of a page. The container div necessarily has overflow:hidden to limit the number of thumbnails displayed at any one time. I would like to display a larger version of the thumbnail when the mouse hovers over it. I'm m...

How to apply picture for submit button

When I apply picture for submit button, it appears like this http://www.flickr.com/photos/41695354@N08/4106014382/ how to apply picture to a submit button help. My code: HTML <input type="submit" class="search_icon" value="" /> CSS .search_icon { background-image:url(../images/search_ic.png); width:32px; height:32px; } ...

Generate frame for picture

Hi all. I creating gallery, and I want to create frame around the picture. But this picture must be scalable. Width and height of this frame generated by width and height of image. And must to have possibility to change height of frame through the JavaScript. Thanks. PS: First of all, I must to have possibility to make frame narr...

How to convert css long to css one line style with Notepad++

from style that looks like this: ul#menu { padding: 0 0 2px; position: relative; margin: 0; text-align: right; } to: ul#menu { padding: 0 0 2px; position: relative; margin: 0; text-align: right; } Is there auto plugin, or script? ...

Accents on numbers in HTML (like a ^ over 1)

I'm trying to find the best way to put circumflex accents ( = &circ;) on top of numbers (a musical notation) without resorting to images. Certain letters have equivalent HTML entities: = &ecirc;, = &Ocirc;, etc., but numbers don't. Here is what I'm currently using on my website: <span style="position:relative;">1 <span style="p...

Working with Zend Framework FlashMessenger and jQuery UI state classes

I have a Zend Framework application that is making use of jQuery UI. In my controllers, I am setting error/success messages with the FlashMessenger helper like this: // ExampleController.php $this->_helper->FlashMessenger('Sorry, could not complete your request.'); In my layout, I am displaying the messages by using the Noumenal Flas...