css

h1 tag class (alternate)

I know that h1 tag is important for SEO, so all my title is H1 (bravo!) now i need to have title (as the first line of a texte) a little different on some page usually i just duplicate h1 as h2 and alternate the question: is it possible to add a class to the title tag... (i have try without success) ...

css: how to center box div element directly in center?

when i use top:50% and left:50% the box is not directly in center. of course when the box is very small, it appears to be centered. but when box is a bit big, it looks as if it's not centered. how can i resolve this ? ...

Hover next / previous element

I need to be able to have the next element / previous element to change the background color with the current element. How do I do that. The element that I am working is TR, table row, and nextSibling, previousSibling doesn't do the trick for me, don't know why ? ...

drop right menu

I'm looking for a drop-right menu, not dropdown. Based on list of lists, ex html <ul> <li> item1 <li> fold1 <ul><li> fold1it1 <li> fold1it2 </ul> <li> item2 <li> fold2 <ul><li> fold2it1 <li> fold2it2 </ul> </ul> When you mousover fold1, it would expand to the right right (drop right) item1 fold1 fold1it1 fold1it2 fold2it3 ...

Unwanted vertical space after Flash object

See the code below: <div>Lorem ipsum dolor sit amet</div> <object type="application/x-shockwave-flash" data="banner.swf" width="965" height="120" ></object> <div>Consectetur adipiscing elit</div> Viewing it in either Gecko, Webkit or Presto, an unintentional vertical space occurs a...

Is it possible to use JSP/JSTL to generate dynamic css/javascript files?

If so how do you do this? (jboss/tomact embedded/jdk 1.5) not embedded js/css but an actual file... ...

Removing text from HTML buttons on all browsers?

We have buttons of many sizes and colors that use background images. There is a label on the background image itself, but we need to keep the button's text in the HTML for usability/accessibility. How do I make the text disappear in all browsers? Modern browsers are easy, I just used - color: transparent; It's Internet Explorer 7 tha...

How to change the width of an HTML upload field with CSS?

I can change the width of an upload field with the size attribute: <input type="file" size="20"> But CSS's width, which works fine for regular input fields and other forms controls, seems to have no effect here, even on Firefox: <input type="file" style="width: 20em"> Is there another way to accomplish this? ...

CSS [if IE7] in StyleSheet?

Can you define an [if IE7] in the actual stylesheet? Or must you do it in the html to pull a different SS? Thanks! (Google isn't being kind to me =/) ...

How do Make 3 inline elements ? Then add a seperate independent 4th elemt that floats on the otherside of the page ?

I desire to make 3 things in a straight line at the top of the page pretty much ok there, but the 4yh will not budge and if i do get it to move somehow, it conflicts with the other 3 causing those to break. Consider the following: <\Span style="textContainer"; CLASS = string; STYLE = string; TITLE = string;"> <\div id="searchBoxC...

HTML's "<img align=top>" in CSS?

How do I emulate <img align='top' src='huge_image.jpg'> <span>I start at the top right corner of the image!</span> in CSS? Maybe it's embarrassingly simple, but I really don't know. ...

Jquery to merge all referenced pages into root page?

This sounds a little obscure, but... Is there a technique in Jquery (or just straight javascript) to step thru all the external CSS and JS file references in an HTML file and replace the references with the contents of the files. So instead of: <link rel='stylesheet' id='style-css' href='http://domain.com/style.css' type='text/css' me...

select multiple form

how can i make a form where you dont need to hold down control key to select multiple options ? i want to make it so that when you just click on any of the options, they will be highlighted. ...

Toggle the Background Color between two links to show which is active using jquery and css?

(Jquery) I have two divs that I'm toggling back and forth (show and hide) between on my page using a link to each. I want the link that is clicked on to change to a highlighted background color and when you click on the other it is highlighted and the previous goes back to normal. I've tried reworking the toggle code I've got for the di...

I cant change width of <a> without make it float or block

Why is it like this? What's the reason inside it? ...

float: left removing including div ?

I don't really understand what's going on here. This is my css and html #content { -moz-border-radius:10px; background:#F0F0F0; width: 910px; margin: 0 auto; clear: both; } #content ul { list-style: none; padding: 0; margin: 0; } <div id="content"> <ul> <li>Foo</li> <li>Bar</li> <li>Baz</li> </ul> ...

how to call to controller function when user selected a value in drop down list?

how can i create a drop down list with action which allow me link to other page? i using cakephp to doing a system, which i wanna have a drop down list to let user select. when user selected the value, i wanted to call a function in controller.. izit available that i can using a $form->input to perform this?? how can i call a function ...

msie strange div formatting (among other issues) what am I doing wrong?

Hi folks. On the page http://listtree.appspot.com/about/bEcPYABxI$6UeBDHzASwlA if I scroll to the bottom using MSIE 8 the left hand side yellow div borders to a weird jumping up and down dance -- what am I doing wrong? I have similar pages where this isn't happening and the "developers tools" interface seems happy with the html. Also...

CSS working only in Firefox.

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www.wdmadvertising.com.au/preview/cfs/i/btn-search.gif" /> <input type="hidden" name="cx" value="012437731193502990522:kx_jllw0ckq" /> <input type="hidd...

Input Box background color not changing in IE

In my CSS file, I have defined a class as given below. input.entryFormInputBoxColor:focus { background-color:cyan; } When I use Firefox (3.5.5), the Input Box background color changes to cyan when there is focus, but it is not changing in IE (6.0). The class is successfully executing in Firefox, and all other classes defined, work...