css

Vertical-align with baseline and textareas

I'm trying to get a label lined up with the baseline of the first line of text in a text area. The naive attempt: <div style="vertical-align: baseline; display: inline-block"> <label for="comments">Comments:</label> </div> <div style="vertical-align: baseline; display: inline-block"> <textarea name="comments" id="comments"></text...

remove styling of telephone numbers

Is there a way to remove the default blue hyperlink colour from a telephone number when viewed on an iPhone? Like a specific Mobile Safari tag or CSS to add? Have this rendering issue on some of my websites but can't see why this is occurring. ...

CSS Rounded Corners Not Working - Why Not?

<div id="main-solutions"> <div id="main-solutions-top-left"></div> <div id="main-solutions-top-right"></div> <div id="main-solutions-body"> blah blah blah </div> </div> css #main-solutions { } #main-solutions-top-left { position: absolute; top: 0px; left: 0px; background: url('../images/Top-Left-Gra...

Looking for jQuery Carousel with resizing elements. write from scratch or plugin?

I have a task ahead of me and I would like to plan the best way of attacking it before diving in. I need to make a carousel with resizing elements that animate similar to this page/plugin http://www.eogallery.com/ This gallery seems like it needs a lot of work and does not operate very smooth. I have used jcarousel many times and have ...

Simplest way to implement slightly-rounded corners like on this example site?

I have to implement a tab control identical in terms of style to what can be seen here: http://funds.ft.com This is the example I've come up with so far: http://jsfiddle.net/MZUQK/ The biggest issue I'm facing is that the first one has 'rounded' corners that was implemented automatically by the ASP.NET AJAX used to develop the site. ...

Creating a floating button

Hey all, I'm working on a Firefox extension and am out of ideas on how to implement a floating button. I need a button that is overlayed on my page that I can show/hide and dynamically position just about anywhere on my page. I thought I could do something like a fancy CSS tool-tip except replace it with button functionality, but that i...

jQuery slideshow: how do I modify this code to show a custom pager per slide ?

Right now the code is spitting out 1 pager item per slide existing. I'm trying to get it to show a custom pager graphic per slide. IE: slide 1 shows pager1.gif, slide 2 shows pager2.gif, etc. Thanks! appendControlls: function() { if (options.slideControlls == 'items') { var elementToAppend = options.appendControlls || slideWra...

How to dynamically change <li> style without affecting other <li>s?

Hi, I have an unordered list of links. <ul> <li><a href="#">Link is really really really really LONNNNNNNG</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> I have set the line-height or the list items to 30px. ul {width:100px;} ul li {line-height:...

CSS: Div not extending with child divs

Hi, I have a div which contains 3 columns (each as a div). The problem is that the height of the parent div is not extending with the height of the columns. Here are the styles in question: #content{ background: #fff; clear: both; color: #333; padding: 10px 20px 40px 20px; overflow: auto; } #leftcol { position:absolute; float:left;...

How do I auto-reload a section of the page with jQuery without refreshing entire page?

So there are a few things I want to do. I have a section of HTML that I would like to be displayed on the page by default (i.e. the first time it loads). <div class="viewport"> <ul class="overview"> <li><img src="images/1.png" /></li> <li><img src="images/2.png" /></li> <li><img src...

page peal z-index issue ?

i'm trying to use page peal to hide my current tweets until it's hover'd over // for some reason, when the page first loads (( i'm using chrome )) the text displays until it's hover'd over. not really sure why.. here it is // any ideas ?? ...

Is it possible to align a table caption to one side and it's span to another?

For example: <caption>My Table <span>My Table Span</span> </caption> I want to align the caption to the left and it's span to the right: caption { text-align:left; } caption span { text-align:right; } That will not work. Is it possible to do what I'm trying to do? ...

Jump to content inside of a scrollable div.

Hello. I apologize if the title of this question is a bit misleading, I could not come up with a better name. I got the following HTML: <div style="height:200px;overflow-y:scroll;"> <table>.....</table> </div> With this setup I'm somewhat mimicking the expanded <select> control with @size attribute defined. So, that a user could ...

Would it be good to have CSS in <head> for mobiles site?

Is it good to have CSS in <head> for mobiles site? because there will be not much css to write and maintain. Like this http://www.emirplicanic.com/uploaded/tutorials/mobile/ <head> <style type="text/css"> css here........... </style> </head> It will save one HTTP request. We can keep one common header.php for site. Or keeping css ...

jQuery fadein() memory leak?

Has anybody ever had any issues using fadeIn()? I'm working on a project right now and was having a lot of memory leaking, but when I changed all the instances of fadeIn() to css('display','block') it fixed it. ...

jQuery mouse queue/ css change problem

$(next).click(function(event) { event.preventDefault(); if(parseInt($(container).css('left')) <= (-(container_width-offset))) { $(container).animate({ queue:false, left: "0px" }, speed, function() { }); } else { $(container).animate({ q...

How can I expand CSS shorthand properties programmatically?

Is there a .Net CSS parser that will allow me to parse css shorthand properties into their longhand form? For example I'd like to take the following: #somediv{ margin: 10px; padding: 10px 20px; border:5px solid #FFF; } And translate it to: #somediv{ margin-top: ...

Help with auto-rotating infinite jquery carousel. Can not get carousel to loop infinitely instead of 'rewind'.

I'm building an auto-rotating image-carousel with jquery and I'm trying to get the images to rotate infinitely rather than when it reaches the last image, it 'rewinds' back to the first image and starts again. Unfortunately, I'm rather new at the jquery game, so I'm having some trouble getting this to work. I've tried piecing together ...

CSS - Image on right side of page with text not wrapping around it

This is probably a simple question, but I can't figure it out. I would like to use CSS to put an image on the right side of a page and not wrap text around it. I would like it like this: ------------ | img | | | ------------ text text text text text text text...

Float Clearing Problem in IE6 - They're Clearing By Themselves!

I'm building a page that has a UL list with its items floated to create 2 columns. See http://epraxadev.com/valencia/food_truck_festival/index2.php It works perfectly in Firefox, Chrome, Safari, IE8, and IE7. The only problem is in IE6. In IE6, instead of the list elements stacking in neat 2-row columns, with the thumbnail floated to th...