css

jquery css class problem

There are 2 classes for the same tag. class .bt1 set as default in html code. I need this p tag to change its class on click and save it, and when I click on this p tag I need it to be 'bt1i' class and 'bt1i' onclick function start working. Can someone help me to understand why it do not work and where is the error. As I understand wh...

Why isn't my !important attribute working in Google Chrome?

I have two CSS files in my web app: reset.css and screen.css. They appear in that order in the html (reset then screen). In the reset.css, the following style definition occurs: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img...

How can I get a div to appear when a textarea is in focus? (both are children of the same form element)

I'm having trouble getting my CSS to work :( HTML <form action="/api/submit/" method="post"> <textarea name="post" rows="2"></textarea> <input type="url" name="url" /> <div> <input type="radio" name="someName" value="someValue" /> </div> <button type="submit">Submit</button> </form> CSS form > input { ...

How to keep background image on bottom left even scrolling....

Hello. I was wondering if there is a way to keep my background image on bottom left all the time even if the user scroll the browser. My current css can make the image in the bottom of the browser when the site loaded, but if I scroll the browser, it will still stay in the same location. I appreciate any help. html, body { backgroun...

tooltip like control on the div

Hi, does anyone know how to create a tooltip on the div. On my page, i have 4 div and I want every time the user mouse over on a div, it will show down the tooltip from the top and after few seconds the tooltip will be automatically hidden.. THANKS ...

In webkit browsers, sometimes part of the background appears white

I have this issue that appears only when using a webkit browser. Sometimes, when I reload my browser, certain parts of the background become white, and if I resize the window, it renders the background completely. I was wondering, does anyone else have this issue? I don't think it's a markup issue, so I'm not going to attach any code. J...

text convert into an image

Hi, How do I convert text into an image in HTML Thank you. ...

dreamweaver and chrome- trying to reload style sheet

figured id ask this here since the communitys always been super helpfull. anyways- using a template in dreamweaver and chrome for preview- every time i refresh the page in chrome in go back to dreamweaver it gives me the error that the style sheet has been changed outside of DW(CS4). now it never changes anything- but you could imagine ...

Frames + Internet Explorer oddities

I'm running into some very odd beheaviour regarding frames and internet explorer. The situation is like this: I have my web application on www.webapp.com I have a client that wants to have a login box to my www.webapp.com on his website: www.vendor.com The vendor his website is setup by his webdesigner at www.vendor.com. It consists o...

CSS drop down div

I have a div box and a link on my page. I have written simple javascript that hides the div box at the beginning, then after clicking the link, the box appears again. The problem is, when the div appears, it pushes down contents bellow it. I would like it to just appear "above" them. Like a drop down menu but this is just a single div t...

Most versatile font for printing and screen?

I have to choose a font for a web application that produces a printable view of some text (long text, no colors, white background). Example here. Users will read this printable view in these possible ways: From pc\Ereader (after saving it in html) From pc\Ereader (after "printing" it in Pdf, mac users will natively do it) From pape...

jQuery LazyLoad Alternative (minus the scrollbar code)

Hey, What I would like is to use the jQuery plugin: LazyLoad But, rather than trigger the event on Window Scroll - I would like to trigger it when the elements come into view. (I have no scroll bars on my site, so scroll bars are not an option). Help me before I have no hair left. EDIT: Ok, so I got it to work - SORT OF - it only se...

mayday: CSS fonts look horrible different in IE compared to Chrome/Firefox after update

Hello Guys, My site used to look the same in IE, Chrome, Firefox. Today, I looked at the online site (http://www.skytop.at/) and the fonts are a complete mess in IE8, but fine in Chrome and Firefox. I desperately need a quick fix, since the client will be very pissed ;-( Please look at the site in IE (e.g. IE8) versus Chrome/Firefox:...

centering an element in a table cell so it's in the absolute center of the page?

The vBulletin v3.6 message board uses a table for the header image. What I'd like to do is have the left cell remain left aligned but have the div in the right cell to be in the absolute center of the page. If that's not possible, what is the best way to accomplish this? I attempted using a wrapper div and inline CSS properties but i...

Using .otf fonts on web browsers

Hello ... I'm working on a website that requires font trials online, the fonts i got are all .otf ... is there anyway i can embed the fonts and get them working on all browsers ??? If not, what other alternatives i have ?? Thanks ...

how to set border color of a texbox using jquery

How to set a default border color of a control using jquery. if (_userName.val().trim() == "") { errMsg += "\nUserName is a mandatory field."; _userName.css('border-color', 'red'); } else { _userName.css('border-color', 'red');//Set border-color as loaded //when page was loaded...

How can I have 4 divs inside a div that are all equal in size and are not joined together?

Thanks ...

Class not being applied in IE6 using addClass()

I have the following DIV in my HTML which holds a large background image: <div id="widget-image" class="tyreinfo1"></div> Depending on which select box on a form on the page is selected, the background image will scroll to a different point. These positions are defined like so: #widget-image.tyreinfo1 { background-position: 0px -105p...

IE6 form expanding beyond desired height

Hi, I have a form which has expanded beyond the desired height in IE6 only :( Please view this fiddle for the problem: http://jsfiddle.net/fbTDZ/ I don't see an issue in other browsers. ...

Help with CSS selectors (jQuery datepicker)

I'm tyring to style the jQuery datepicker. I can't use a jQuery theme as it wrecks the rest of my site. I've got it all working expect for one bit - highlighting the current day. The problem I'm having is that when the datepicker first loads the current day is displayed as follows: <td class="ui-datepicker-days-cell-over ui-datepicke...