css

Combining multiple SVGs to avoid HTTP requests

Hi, We all know CSS sprites - a method to combine multiple images into one and thus avoiding the need for many HTTP requests. However, I am using SVG, so, combining them into one is not as obvious. How would I accomplish this with SVG? Is it wise idea to put the SVG into the document at the bottom? What if it's an application and not a ...

wrapping span tags inside a div css

I have a couple of div tags nested withing each other and a few span tags nested like below:- <div id="leftcol"> <div id="tagcloud"> <span class="mytags"><a href="">tag1</a></span><span class="mytags"><a href="">tag2</a> and a few more spans of the same type </div> </div> Now the issue is that spans overflow their container div tag.Ca...

resize images using % in css

I am trying to create a liquid web layout using % for as many things as i can. I have hit a bump when resizing images. both: <img src="source" style="width: 20%; height: 20%;"/> and .wall_picture_block img{ width: 20%; height: 20%; } don't work properly with the height attribte. They resize the image width to 20% of the container...

How to get non-standard font with effect in use of web site?

Problem is, that I need to get non-standard font (not everyone has it on his computer) with effect (from Photoshop: Outer Glow) in web site. I can use Javascript (including jQuery) and CSS3 for it, but that font should be able to highlight like any text in web. Any solutions? P.S. Font: Titillium. ...

:after pseudo-class and tags

Hi, I just created a simple page where I tried to emulate ajax with CSS. For doing that, I wanted to create invisible radio-buttons with visible labels, an external CSS-file should be loaded as soon as the user clicks on a label. There is just one problem: Tags are printed out as plain text inside the class. Is there a way to handle tha...

How to indent list items using CSS when you have floating blocks?

I observed a relative strange behavior when I use floating images in a document. The list items indentation is made relatively to the 'red line' instead of the 'green' one. Why is this happening and can I solve this? <img style="float: left"> <p>some text</p> <ul> <li>aaa</li <li>bbb</li </ul> <p>some other text</p> ...

Text Input and Image Firefox Alignment Issue

Hey, I am pulling me hair out about this one. http://www.nettunes.co.za/build/contact.php I have an image at the end of a text input that is styled with a background image, here is the css: .text_input{ background:url(../images/forms/text_input_back.png) top left no-repeat; width:479px; border-style:none; font-size:18px...

CSS or javascript click hold function

I use a jquery draggable and I wanted to do is when I click and hold the header, the cursor turns to move cursor. I already tried css active and focus but nothing happen. ...

CSS in Internet Explorer: list-style-image and float:left issue

I have an issue with list-style-image property in CSS with Internet Explorer 8 If I set li { float:left; list-style-image: none; } each menu item is above each other. If I remove list-style-image:none, they are perfectly positioned instead, but they have the dot image. (see images) ...

Question about VS 2010 web application template (html markup)

In the image below, in my markup, the title of the page is "Welcome to My sample Web Site" (not all caps). However, in the split screen, the title is shown in all caps. The code in CSS is: h1, h2, h3, h4, h5, h6 { font-size: 1.5em; color: #666666; font-variant: small-caps; text-transform: none; font-weight: 200;...

Max div height in Internet Explorer

How can I have a div of static 60px height in Internet Explorer? ...

CSS, Styling the Parent/Root but not the children? W/O creating sloppy CSS

So this is new, I'm trying to create clean CSS, here's my code example: <ul id="Main"> <li>blah blah</li> <li>blah blah</li> <li>blah blah</li> <li> <ul> <li>ding dong</li> <li>ding dong</li> <li>ding dong</li> </ul> </li> </ul> Then I have the following CSS: #Main li { background-color:Red; } Probl...

Image vertical align with css - strange

I have the following code: <html> <head> <style type="text/css"> #test img {vertical-align: middle;} div#test { border: 1px solid green; height: 150px; line-height: 150px; text-align: center; color: white } </style> </head> <body> <div id="test">t<img class="bottom" src="http://www.w3schools.com/css/w3schools_logo.gif" alt="W3School...

How can I resize an image, added via ajax, to fit within specific dimensions while maintaining aspect ratio using JQuery/CSS?

I've got a web application that loads some content from an external source to the dom via an ajax call, one of the things that comes back is a set of images (different sizes and aspect ratios) to be displayed in an profile photo section. I'd like for each of the images to be resized to fit within a 64px x 64px area and I'd like to mainta...

trying to spice up a jquery ui accordion

here's my current markup (via JSBin). i have a basic jquery ui accordion (i think everything is ok with it), but am looking to make it more visually appealing. Basically, I'm trying to mirror the look and feel of neon sky creative media's flash-based menu, which i can't post a link to because new users can only post 1 hyperlink max. j...

div not expanding to new content in IE8

I have a div A and another div B inside it. Using jquery i get data and insert into HTML() in div B, div A does not expand its length and div B overflows over the bottom. Here is its CSS: #A { position:absolute; top:30px; left:0; background-color: #FFFFFF; width:920px; display:block; padding: 0 0 30px 0; ...

How do I style a table like a notepad?

I would like to create a CSS/HTML version of this notepad on my page: I was thinking of using a simple table like this: <div id="notepad"> <table> <thead id="tbl_header">Comments</thead> <tr></tr> <tr> <td class="col1">Dot</td> <td class="col2">Text for...

CSS left menu layout problem

Hi, I have a problem and I have no idea how to solve it. I have website with header, left-menu, content and footer. I used float as positioning scheme. My problem is, I want left menu to adjust with text size of the hyperlinks. Normally, there would be no problem with this thanks to float, but to solve one problem in IE, I had to set ex...

firefox dosen't support div width

I have a problem with Firefox to show this: (But IE show correctly) <div id="main_div" dir="rtl"> <div dir="rtl"> <div class="outer_div" dir="rtl"> Text! </div> </div> <div dir="rtl"> <div class="outer_div" dir="rtl"> Text! </div> </div> <div dir="rtl"> <div class="outer_div" dir="rtl"> ...

CSS/JQuery menu navigation

What code or script am I looking for in order to sticky a menu to the top of the website even as the user scrolls down the page? ...