css

[CSS] Element doesn't float right

Hi everyone, <div id="content"> <h1>Contact</h1> <h2>Wanneer te bereiken?</h2> <p>U kan mij 7 dagen op 7 bereiken.</p> <h2>Hoe te bereiken?</h2> <h3>Telefoon</h3> <p>+32(0)495842704</p> <h3>E-mail</h3> ... </div> I want the E-mail section to float righ...

CSS Parser in CodeIgniter

Hi guys, is there any CSS parser in the CodeIgniter Framework? If not: Where should I store my PHP file for parsing css (neat solution)? In the webroot? ...

body size when you have a window scroll

Hi all, I have a basic question... When you have a html page with a scrollbar, the size of the body element remains equal to the window size, not to the effective width of the page inside the window... why? Is there a way to modify this behaviour? ...

Printer Friendly page not working with IE8

Hello Everyone, i m trying to pickup contents of a div and open it in new window using window.open so user can print this printer friendly page. i have got the code somewhere on the net and made some modifications. below is the code snippet function printpage() { var disp_setting="toolbar=yes,location=no,directories=yes,menubar=y...

Table caption element is causing page to break when printing

Hi there, Consider the following table: <table> <caption>The caption</caption> <thead>...</thead> <tbody>...</tbody> <tfoot>...</tfoot> </table> The table renders right when displaying on screen, but when printing it breaks the table for a new page. When I delete the caption element or display:none, the table renders right on printin...

Screen to print font faces

What is your normal method on styling print style sheets when it comes to font faces. Traditionally serif fonts are better for printed media, but if the sans serif font is still clear and legible, would it be a better option for a print style sheet, if it made the print outs match the website more. ...

font-replacement services for Helvetica Neue

Hello! A project I'll be working on in the near future requires me to do some font replacement for some headings and small portions of the copy (blockquotes, etc) The catch is that the designer wants to use Helvetica Neue. I've looked at Typekit, Fontdeck, Google Fonts, and FontSquirrel and they don't seem to have said font nor anythi...

hyperlink tag active state not working

whenever i've tried using the hyperlink/anchor tag active state, it doesn't work. even if i click on the link, it should show it as in active state, but there's no effect. is there something i'm missing? this is a basic example- html: <ul> <li><a class="main" href="">Home</a></li> <li...

jquery css3 gradient plugin

Does anyone know of a jquery css3 plugin that supports cross browser gradients. All the gradient plugins I've seen thus far are based on creating many elements. Thanks. Edit: Sorry for being unclear, I'm not trying to make CSS3 work on browsers that don't support it. I know I can use gradients on the browsers that support CSS3 gradient...

jQuery finding out what is at a particular X/Y co-ordinate?

Hey, I have the following function: function getPosition() { var cLeft = $('#element').position().left; var cTop = $('#element').position().top; } I also have this: $('ul#container>li.node:eq('+XXX+')').css({'border' : '5px solid yellow'}); Now, is it possible to determine what index for the LI's is at the co-ordinates prov...

Aligning a DIV within a table cell

Hello, I have an HTML table with three columns. In the right most column, I want to right-align the content. In an attempt to do this, I have the following: <table border='0' cellpadding='0' cellspacing='0' style='width:100%;'> <tr> <td>Content 1</td> <td>Content 2</td> <td style='text-align-right'>Content 3</td> </tr> ...

CSS [DIV-Tableless] Stack vertically with diferent heights filling the gaps?

Hi all, I have different DIVS floating to left (float:left) that have different heights. I need to stack this divs like image attached: http://www.krazy.es/images-stackov/capture-divs.jpg Thanks in advance. CoolBurn. ...

Parent div is blocking cursor focus from child divs in IE7

Here's the idea: I have a div element, #content_wrapper, which encompasses three floated divs, #left_column, #nav, and #content. Here's the styles on the #content_wrapper: #content_wrapper { float:left; background: url("images/bg-tan.jpg") repeat-y left center; position:relative; } However, in Internet Explorer 7 the #con...

Android Web Development...Div width (more likely inner text) is changing in pixels based on device zoom.

I developed an application that interfaces with an institution's emergency alert system. How it works is, when there is an alert, on all of the institution's web pages it displays a scrolling marquee at the top of the page that is put there by javascript using protoype and scriptaculous. All of this works perfectly on desktop browsers (...

Invisible scrollbars on a position:absolute div on Safari 5 for Windows

Hello, I have a single div element in a page styled as follow: div {position: absolute; width: 340px; height: 480px; overflow-y:scroll} I use a simple jquery script to center it in the available width and height on window.resize event. The div is displayed and works perfectly on Safari 5 for Mac. On Safari 5 for Windows it works pe...

asp.NET how to change Session Language?

Hello all, I am new to this and would like to create a few simple hyperlinks that change the session language parameter. Then I will test against this parameter to show dynamically different page elements. I have not been able to find any sort of tutorial discussing a simple solution for this, only full blown tutorials that are in dept...

How to regulate height of LIs?

I have a UL where the LIs are boxes. I want the boxes to all be the same size, but sometimes the boxes are one line, and other times they're two. how do i add an extra empty line in the LI if the content is only one line? I'm assuming this will be some sort of javascript? ...

jQuery toggle CSS?

I want to toggle between CSS so when a user clicks the button (#user_button) it shows the menu (#user_options) and changes the CSS, and when the user clicks it again it goes back to normal. So far this is all I have: $('#user_button').click(function() { $('#user_options').toggle(); $("#user_button").css({ borderBottom...

CSS fails to create a horizontal scroll bar

I have CSS sheet which fails to create a horizontal scroll bar when the table width is greater than 800px wide. CSS looks like: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <style type="text/css"> html, body { max-width : 800px; margin-left:auto; margin-r...

how to make a td a link

I have the following: <td> some text <div>a div</div> </td> I'd like to make the entire td a hyperlink. I'd prefer without javascript. Is this possible? ...