css

Two column div layout, with one taking the remainder

Given the following html: <body> <div style="float: left; background: red">Hi</div> <div style="float: left; background: blue">Hi again</div> </body> I want the 2nd div to take the remainder of the width off the page. Setting width 100% will make it wrap to the next line, and I don't know what else to set to fix it. The left column ne...

Weird Chrome problem

Hi. I've got a problem and I'm desperate for help. I needed for some reason to render table header and table body separately. Each column and header cell have got same css class (eg. .col1_name). Those css classes have got declared width and text-align, and in that manner i'm making sure that header and table body cells stay aligned p...

joomla template: How do I fix all text centered on IE6?

Well my template is looking greate on everything there is to be but IE6... (which it is quite normal so far) the issue is my text is align to the center (nowhere in the CSS there is nothing but * {margin:0px auto} that indicated to align anything to center) I'm pissed with this! I've text-align everything I could think of so far and noth...

vertically align items in an unordered html list

hi How can I vertically align items in an unordered list to work also in IE6,7? I can't just set line-height to the full height because I have both 1 row items and 2 rows items My html code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <title></...

How can I cause the browser to scroll an element horizontally to a pre-defined location without using JavaScript?

I'm working on 'timeline' project, where I have content inside of list items, in a horizontal unordered list. This is contained in a div, so you can scroll left to right through the content. My client would like buttons to 'goto' each era. I know this is easily achieved through JavaScript. However they also want this to be functional wi...

google chrome for mac positioning headache

i am using FF as the main testing platform and Chrome (for Mac) as the secondary. I just noticed that Chrome is showing ~20px off positioning for CSS. (just to be clear Chrome is showing the TEXTAREA ~20px down as compared to FF) Also Chrome is not obeying the width CSS property for TEXTAREA. Is it just me or everyone is having this pro...

Alternatives to Faux column on a single centered colunmn

Hi, I am working on a centered 2-column layout. Both halves of the centered column stretch equally because I have a footer beneath it. How can I make the center column - at its shortest - no shorter than the browser? What are alternatives (using CSS only if possible) to the faux column technique? Code welcome. Thank You. ...

Resize jqGrid based on number of rows?

I want my jqGrid to shrink and expand based on the number of rows it has. Let say it currently has 10 rows, the height of the jqGrid will shrink to 10 rows (so that no gaping empty rows is exposed). If however there are too many rows, the height of the grid will expand to a maximum 'height' value and a scroll bar will appear. ...

can't seem to see logo.jpg inside the header_container div ?

I can't figure out why the image is not resolving inside the div id="header_container" everything looks ok, the image is on the server,,, what's the issue here? http://winteradagency.com/mrw/index.php any ideas? thanks ...

Sentence Spacing

What is the best way to present the additional spacing that should come between sentences (using [X]HTML+CSS)? <p>Lorem ipsum. Dolor sit amet.</p> ^^ wider than word spacing Since HTML and XML both require whitespace folding, the above two spaces must behave as a single space. What options are there? There are a few o...

Div with a Header

I want to create a <div> which has a Label/Header displayed in Capitals letters. The <div> is 250px wide. Inside the <div>, I will place another <div> which will contain controls. This inner <div> should be center aligned and the outer <div> should automatically increase its height to accommodate the controls height. The outer <div> an...

.NET Gridview themes examples

I'm looking for examples for .net gridView themes (css files) to get ideas for my grid. My grid must have a double-pager look (Bottom & Top) and should support sorting (by clicking on headers) and row highlighting when moving the mouse. The only one I found online was the Glassy Black (http://weblogs.asp.net/kevinbrammer/archive/2008/0...

IE7 CSS Float Issue

Hi. I have a problem with a page. Its using CSS floats. Everything looks fine in IE8 and 6, and Firefox, Chrome etc but in IE7, the bottom 3 boxes "float" above some of the main content box. I cant for the life of me figure out how to stop this. Ive tried a few things such as adding clear:both; below the main content div, and also differ...

Dispatching 'mouseover' event on links in Firefox

I have been experimenting with dispatching events in Firefox and noticed that dispatching the mouseover event on a link does not cause its style to change to that defined in the :hover CSS class. Dispatching the 'click' event does change the link style to :active. Any reason for this behavior or I am doing something wrong in my code? va...

JQuery and RadioButtons question

Hi, I have a table containing radiobuttons (i.e. 3x3 grid) and I want when I select one of them the containing the radiobutton to change colour. Following this example I did this <table class="table-name"> <tr> <td> <span>Some text</span> <input type="radio" name="some-name" /> </td> <td> <span>Som...

I want this nav inline in IE 7 & IE 6.....

I have following CSS for that /* Start Submenu */ #submenu { list-style-type:none; } #submenu ul{ border-bottom:3px solid #1c29da; margin:0px; padding:0px; display:table; } #submenu li{ width:123px; height:58px; background:url(submenu_btn.jpg) no-repeat; vertical-align:middle; text-align:cente...

autoversioning image links INSIDE css and javascript files?

Hi folks! Inside my PHP application, I'm already successfully autoversioning my static content (CSS, JS, and images), so my URLs look something like this: <link rel="stylesheet" href="http://example.com/include/css/global.1262063295.css" type="text/css" media="all" /> <img src="http://example.com/images/logo.1254284339.png" alt="" /> ...

Rounded (image) corners using jQuery

I'd like to apply rounded corners to several blocks using the single image (above). I know there're corners plugins available but I need to use images for max compatibility. So, as I know, the only way is to create wrappers around the blocks to apply the corner images: <div class="wrapper-4"> <!-- top-left corner --> <div class="wra...

heroku css stylesheet won't display

hi i have just deployed my rails application but the css stylesheet wont appear I'm calling the stylesheet as follows: <%= stylesheet_link_tag 'layout' %> thnx in advance ...

960: help with not fixed size column

i want to have 5 divs (2 rows). header leftbar - content - rightbar - ad columns ( google adsense) but i want the content to be resizable. it will adjust to the webbrowsers size but not undergo a certain width eg 600 px, while leftbar, rightbar and ad column are fixed. the header should also not be fixed. just like wn (try to resize ...