css

CSS: Position on Resizing?

Whatever I try, float, or absolute position, at resizing it fails and change position. I tried a normal menu and div elements, but if i resize at my browser it changes position. What I want when you resize is that it keeps the position nomatter what so you have to scroll to the left to see the floated element/positioned element. E.g s...

Why is IE 7 allowing all my content to break past my DIV? (however it works in Chrome, Safari, etc)

If you use IE 7 and click on this site: http://www.tlsadmin.com/tlsadmin/PortalHome.aspx Then, navigate to: TLS Admin --\My Companies ------\Contoso ----------\Shared Contacts You'll see how the list of contacts is all messed up and I can't scroll down. Anyone know why? And if you're curious, it's my job to take this site as-is...

Different list item

Hey, I've a very funny problem. I have a very loong ul li a menu and want to have ONE item with different width and height. The menu looks like this: <ul id="nav"> <li id="smaller"><a href="#" id="smallerLink">The smallest item</a></li> <li><a href="#">Another item</a></li> <li><a href="#">Another item</a></li> <li><a href="#">...

How can I alter the body_classes_array through hook_menu?

I'd like to add a css class to the body_classes_array as if I were using template_preprocess_page to alter &$vars, but I'd like to do it through hook_menu() page callback. Is it even possible to do? ...

Text in vertical middle of Div

Hello! How can I align text in the vertical middle of a Div element provided it has a position:absolute property specified? Setting display:table-cell; vertical-align:middle; isn't working. Thanks! ...

making a swf a clickable link with the pointer icon

I have a swf embedded into a site, and I want the swf to be clickable so when you click on it it goes to another page. I tried wrapping the whole flash object in tags, and that makes it clickable but the biggest problem I'm having is when you roll over it with the mouse the pointer icon doesn't come up, it just looks like the regular ar...

Superfish dropdown menu not working in IE7

Hi guys, On my site I installed superfish dropdowns, which I use on other sites as well. Anywho, I thought all was working because they work fine in Safari, FF, and IE8. But alas, in IE7 (and probably IE6 but I don't care!) they do not appear. I read about Z-index issues with IE7, but none of the solutions worked. Anyone know how t...

CSS Menu disappears when trying to mouse over in IE 8 in compatibility mode

I have created a drop down menu with CSS which works great in Firefox, Chrome and IE8, but fails when when in IE8 compatibility mode. When you try to mouse over the drop down menu, it disappears. You can see this issue in action at: http://chocolat.digitaldementia.ca/chocolat. I have spent the last 4 days trying to find a fix for this pr...

The display order of CSS rules in Chrome Developer Tools

I have been examining a web page in Chrome Developer Tools and noticed that the CSS rules are displayed in alphabetical order. I noticed that when I tried to track the inheritance of the rules applied to an element through all its ancestors. Is there any way to change the order in which rules are displayed? Or maybe this is possible usi...

CSS Selector for Absence of Tag

Given this HTML: <div class="entry"> <a class="meta">Aug. 20, 2010</a> <div class="content"> <h2><a href="#">Hello.</a></h2> <p>...</p> </div> </div> <div class="entry"> <a class="meta">Aug. 20, 2010</a> <div class="content"> <p>...</p> </div> </div> And this CSS: .entry{ width: 760...

Give paragraph effect through Css

Can you tell me how to give paragraph effect to my paragraph using css? for example: This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my paragraph. This is my para...

What's the standard behavior of float:right following float:left?

Suppose there is such HTML tags: ​<span> <span id='s1'>Text 1</span> <span id='s2'>Text 2</span> </span>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ And the css style is: ​#s1 { float: left; } #s2 { float: right; } What is the standard behavior of the display? In some browser, I see Text 1 Text 2 In som...

Site is breaking in iphone safari, mozilla 5 and google chrome.

A site im working on is breaking in these browsers but working fine in other browsers? vista home edition with mozilla 5.0 Windows XP with mozilla 5.0 iphone with privately iphone with safari Vista with Google chrome 5.0.1 But working fine in: ie 8 and 7 on a PC, safari, firefox and chrome on the mac Check it: http://millcreek-...

jQuery addclass to each Wordpress post image

Hello, this is what I have so far: <script> $(document).ready(function(){ $(".entry-content img:first").addClass('postimage'); }); </script> As you can see, for the first image of .entry-content it adds my class. Cool, that works fine. Uncool, it doesn't work for every post but only the first on the page. I'm not sure how to fix ...

can v change look of combobox of html by css or javascript or any other method

can v change look of combobox of html by css or javascript or any other method. i want the look of combobox of screen resolution window in windows 7.. its quite similar to a buttton ... can i make it.... ...

Clone Specific content of the div and put in other div

Hi I have a little problem when i try to clone an element with jquery basically I Have this, i want to clone the div called clone and put in other div in some where else. <li class="jqModal" > <div class="clone"> <div class="image"> <img src="<?php echo $products[$j]['thumb']; ?>" title="<?php ech...

How to prevent javascript and css messing up?

My company has a website that serves the same app to several clients so every client has his own html templates and we can't edit anything of that. We developed a beutiful Web 2.0 app with lots of jQuery that works great, it's a web toy fully enjoyable but we have to integrate it with the horrible and buggy stuff from the clients (like ...

how to add an arrow in a drop-down menu

Hi, I have a working simple jquery drop-down menu. But problem is how can I put an arrow or just '+' character each other like other usual menus if list has sub-menu, of course. function Mx_menu(){ $(".menu ul").css({display: "none"}); // Opera Fix $(".menu li").hover(function(){ $(this).find('ul:first').css({vi...

How can the awesome SO calendar widget be made to work in IE?

There is, what I think is one of the best uses of CSS over images (the calendar icon) located at: http://chat.meta.stackoverflow.com/chats/transcripts/139?offset=120 But it doesn't work in IE8. Is it possible to convert this to work with IE? I suppose we could use this jQuery code at: http://www.methvin.com/jquery/jq-corner-demo.html ...

jQuery - find out the width of an element as specified in CSS (e.g. in %age if it was specified in %age, not just in px)

Similar to this question: http://stackoverflow.com/questions/744319/get-css-rules-percentage-value-in-jquery However, I am writing a plugin and it needs to deal with it gracefully dependent on how the width was originally specified. If the element was originally specified in pixels it is fine as that is the value that .width(), .innerWi...