css

CSS help please, 2 objects refuse to remain on same line.

Hi, I'm sorry for being a css noob and would appreciate someone to guide me in the right direction. Webpage i need help with can be found at http://filefx.com When you hit the page, you will notice that the "Select Files" icon and "Upload Files" icon are not on the same line. The "Select Files" icon is actually an psuedo upload icon ...

jQuery/CSS: line-height of "normal" == ?px

I'm calling $("#foobar").css("line-height") and getting back "normal". How do I translate this to a pixel amount? Is "normal" defined in the CSS spec or is it browser specific? ...

ie7 problem: multiple floating divs with percentage widths equaling 100% inside container div

This seems to works in ie8, Chrome, and Firefox. Everything should be on the same line, but in ie7 the last div for some reason doesn't seem to "fit" and gets dropped down to the next line. Is there a simple way to get this to work with ie7? <div style="width: 95%"> <div style="width: 25%; background-color: blue; float: left;">test...

Strange IE7 rendering bug

Absolutely positioned element inside a parent with position:relative does not show up, even though z-index and positioning work just fine in standards compliant browsers and IE8 & up. Even more confusing is that when I select the absolutely positioned element in IE Developer Tools, it shows up. Can someone explain to me how to work aro...

Weird problem with jQuery toggle..?

I have a menu/UL with a bunch of LI, and inside those LI, I've got some more UL, LI... Have a look: <ul class='parent'> <li><a>Boules</a></li> <li> <a>Livres</a> <ul class='child'> <li><a>Magazines</a></li> <li><a>Revues</a></li> <li><a>Romans</a></li> </ul> </li> <li> <a>Wirelace (3 child...

Styling highlighted text in incremental search JS

Hello, First StackOverflow question - woo! Quick question about styling this piece of Javascript: //Search $('#search').keydown(function(e) { setTimeout(function() { if ($('#search').val() == '') { $('#history h4').show(); $('#history li li').show(); return; } $('#hi...

Good ways of using CSS in Visual Studio

I searched a lot around here, and did not find anything spectacular about using CSS in Visual Studio. Many people talk around, but not specifically. But I just want to know if there are some simple ways of managing CSS and collaborating it with ASP.NET pages and stuff in VS. Theming is out of discussion for today. I would gladly accept...

css selector to select first class element

Hello, I'm trying to select a first element of class 'A' in an element with id or class 'B'. I've tried a combination of > + and first-child selectors, since it's not a first element inside class element 'B'. It worked, but ... i'm trying to override some default css and i have no control over the server side and it seems that the class...

How to Prevent My CSS From Clashing With Facebook's CSS?

Hi Guys, I have the following HTML on my page: <div id="mypanel"> <span>SomeText</span> <span>SomeText2</span> <span>SomeText3</span> <span>SomeText4</span> <fb:login-button ..snip.. /> </div> You can see there i have some Facebook Markup Language (FBML) for the Login button. Which get's rendered as: <span id="RES_ID...

How do I trigger ESC button to clear text entered in text box?

<input type="text" id="search" size="25" autocomplete="off"/> I know it is something with onkeydown="if (event.keyCode == 27) ...

Grab largest image on site given the URL

Given a URL how do I pull the largest image (in terms of image-dimensions) on the site? I am using it to act as the best possible representation of a sites thumbnail. Similar to first thumbnail image when sharing a url on Facebook: http://www.facebook.com/share.php?u=my_website_url The image thumbnail on Facebook in the div: <div cla...

jQuery resize losing border

Hi everyone! I'm having a few issues with the jQuery UI Resize loosing the border on the textarea I'm resizing (see images). Can you help? Borders showing as intended: Right border hidden: Firebug screenshot: (http://i.imgur.com/TyR43.png) ...

How to center one div in form

I work on C# Asp.net Main div ---- table want to show this div on middle of the form.i want to build a login form.my table contain User name:**(it's a lable,on browser it's broken like user name : show why?)** password: <div id="main"> <table width="600px" border="1"> ...

maintaining vertical font space using CSS

Im using Lucida Grande font for my site and when I put the font-size large, say 30px, the fonts in the two adjacent lines overlap upto some extent. How can I put a gap between the two lines using CSS? ...

How to assign custom CSS to Sharepoint site

I have the Sharepoint site collection. I have my custom CSS. I want to assign the this CSS to my Sharepoint site collection . What I have to do. I don't want to use the Sharepoint designer. In fact is is restrict to use me the same. please guide me ...

Remove default browser styles on form elements.

Note: I've tried searching on google, but couldn't find what I was looking for. Browsers have some default styles they use for rendering form elements, which is different from browser to browser. Is there a way to reset all of the native browser styles for form elements like select, radios, checkbox etc, to make a consistent look across...

How to position a div in bottom right corner or a browser?

Hi guys, I am trying to place my div with some notes in the bottom right position of the screen which will be displayed all time. I used following css for it: #foo { position: fixed; bottom: 0; right: 0; } It works fine with Chrome 3 and Firefox 3.6 but IE8 sucks... what can be a suitable solution for it? ...

Is it possible to have a child element behind his parent element with z-index

Hi, I would like to know if it possible to have a child element behind his parent element with z-index. I would like to use the parent div as transparent color layer on top of his content. Thanks ...

Custom Radiobutton using CSS/JS/JQuery

I have a little web admin tool I'm working on that allows a user to view & edit the properties on a DB Object. Most of the settings are "yes/no/don't know" type properties. There's quite a lot of settings to display so managing screen real-estate & usability is important. When I first scaffolded the UI, I was using Test 1 in the abo...

animated text with in a scroll bar

Hi I have implemented a scroll bar with in table column. Here i want to scroll the text like marquee. I placed the content with in that scroll div. But my problem is that . i want to stop the marquee by clicking on the scroll bar. simply when page load marquee(text move from bottom to the top)will be active when clicking or dragging th...