css

jQuery with css file

Hi Could anyone tell me the best way that I could convert the jquery code below to use a drop down item in a combo box instead of the link shown here. to open the css file 'business.css' and display in a text area thanks rifki a href="css/business.css" class="link">business style <script> $(function(){ $('.link').click(function(){...

Periodically detecting specific strings inside of an HTML element

I have a div element with contenteditable set to true, and I want to detect whether a certain string exists within the element, and if so, style it, giving the appearance of syntax highlighting (I've already looked at existing libraries/scripts, and none of them work the way I need them to). What would be the best solution to this, whil...

Can I use the display:inline with text-align: right?

Example: <td> <img src="..." /> <img src="..." /> <div style="text-align:right display:inline;"> hello world! </div> </td> ...

javascript jquery slide out tab

jquery slide out tab is going over my flash http://isomham.com/TEST/index2.html any ideas on how to solve? ...

How to create a 4-columned, liquid footer?

The content of the website is two-columned with the right being fixed and the left being liquid with min and max widths. I have that down, but now I'm having problems creating a liquid, 4-columned footer to go underneath. The way that I have it makes the columns look stepped like a staircase. I need them all to line up correctly with e...

What is the best practice configuring CSS properties to get a horizontally centered page?

Up to now I have two choices (maybe there are more outside): Set the width of body tag to a fixed length and set the horizontal margin of the body tag to auto. It makes all contents get horizontally centered. Create a wrapping div inside the body. Set the width of the wrapping div to a fixed length and set the horizontal margin of it t...

One CSS file vs multiple for different pages

I have a site where all the pages have the same header and footer, but vary in between on content. I'd estimate that 30% of the CSS is common to all the pages, with 70% varying. What are the relative advantages and disadvantage of using one CSS file vs multiple for different pages? ...

targeting all elements in a div

right now i have this $(".container a").css("color","#ffffff"); which styles all links inside ".container" white. then i have a div structured like this <div class="container"> <div class="header"> <a href="> </div> </div> the links inside that second div only turn white in Firefox. Is there a way to fix the line of js with...

Is it bad or totally wrong to get a horizontally centered page by tuning CSS properties of html tag?

Is it bad or totally wrong to get a horizontally centered page by tuning CSS properties of html tag? css code snippet: <style type="text/css"> html { width: 1200px; margin: 0px auto; background-color: Gray; } body { background-color: red; } </style> html code snippet: <body>any...

Why some professional web designers use absolute paths instead of relative paths (e.g for CSS, Javascript, images, etc.)?

I used to think that everyone used relative paths (e.g. /styles/style.css). But I wonder why some popuar web designers (e.g. http://www.getfinch.com and http://31three.com/) use absolute paths (http://example.com/styles/style.css). So basically I'm asking why some professional designers are using absolute paths instead of relative paths...

How to create a jQuery scroll to edit CSS?

In a lot of CSS examples there is this scrollbar to edit the CSS I can't find one article to do this,can someone explain how? ...

Is my mental model wrong? A relative css path will be called using https if the page gets called using https.

If your page gets called using https protocol, any relative path to an external css will be called using https protocol as well. Are you really need to encrypt/decrypt css contents? :D However, if you use absolute path referring to an external css, you can specify the protocol to use, generally http rather than https. Maybe I am wrong...

Applying CSS through jQuery to a div called by Javascript?

I have the following: <div> <script type="text/javascript" src="someUrl"></script> </div> That script generates a div with some links inside of it so it's like: <div> <div> <a href=""></a> </div> </div> I need to style those links to be a certain color with jQuery because that's the way the page was developed. Right no...

How do I make an image partially scroll, then stay fixed, then scroll when you pass a section?

I don't even know what I want to do would be called Please take a quick look at this page: http://www.philsalesses.com/plasma-pong/ You'll see the title Plasma Pong and an image under it, on the left side. When I scroll the article, I'd like it to stay put while the page scrolls. However, you'll notice when you get the bottom of the...

print web page in different print quality width fix element size, mozilla, dot matrix printer

Hi, I am having problems with printing in dot matrix printer. My client printer is Epson LX300+II and Epson LQ-2170. I need to print from a web apps that written in php. with web browser client is Mozilla Firefox But i can't set the fix width for the layout. for example: <div style="width:2in"> content </div> when i print those things...

Fundraising Thermometer Approach

I need to create a thermometer type widget for a website, where I can feed in a goal and current amount, then generate a graphic that shows the progress. I was thinking something with jQuery/CSS would be the best approach, but then I started thinking maybe just using a vertical slider from the jQuery UI library and skinning it. How wou...

Absolute positioning in gmail emails

I have a client who wants to send gift certificates to people who sign up on their site. They want it all designed out, so I can't just send a text email. I'm trying to position text over the image so that it can still be dynamic. I'm trying to do this with absolute positioning. Some email systems love it. Some hate it. Gmail happens to...

Why does font-size CSS not work on iPad HTML emails?

I'm working on an HTML email and have been running to a problem on the mail client on the iPad only. It seems that setting inline CSS to "font-size: 12px" or any other size does not work on the mail app for iPad, despite the font-size displaying correctly in the Mail app for Mac OS X. Any ideas? ...

how to make a 'forward' button using jqtouch .

i can make the 'back' button, it only use to add 'back' to the className , but ,how to make a 'forward' button ,that slide right when clicked. thanks like the 'List' in next pic, ...

How to compare two time in PHP

i had two times in the format like 7:30:00 and 22:30:00 stored in the variable $resttimefrom and $resttimeto respectively I want to check whether the current time is between this two values. I am checking this with the code $time =date("G:i:s"); if ($time >$resttimefrom and $time <$resttimeto ) { $stat="open"; ...