css

Can I Include different javascript/css files per Content Page using ASP.NET WebForms Master Pages?

I have several Content Pages using the same Master Page, that don't all need the same javascript and css files included in the <head> tag. Is it possible to change the contents of the <head> tag from the Content Pages? ...

how to set opacity IE? probem with mouse over

When I am trying to set opacity in css, mouse over event is not getting fired. my css code is- .dropmenudiv_a{ position:absolute; top: 0; border: 1px solid white; /*THEME CHANGE HERE*/ border-top-width: 8px; /*Top border width. Should match height of .ddcolortabsline above*/ border-bottom-width: 0; border-le...

unwanted space after positioned div on top of another div

Hi, I'm having a problem adjusting the layout of my site. I have 2 div tags, one has a welcome message and a picture. The other div is empty until the user enters information in a form, at which point I use jquery to hide the welcome message and display content relevant to the users data. The problem is that the browser thinks it needs...

CSS margins %'s

Hello. I would like an elements top margin to be specified as a percentage of the height of the window, is this possible? If i set something to have a css property like the below #idName{margin:10% 0;} this will set it to 10% of the width of the browser viewport, which is not the desired behaviour. The reason i want to do this is m...

IE PNG transparency issue + TwinHelix

I'm trying to implement the Twin Helix PNG transparency issue in IE6 but when I downloaded the zip file the htaccess file is empty. Does anyone know what should be inside the file in order to complete the fix? Thanks in advance! ...

Android WebView border-radius aliasing

When using border-radius on my android emulator I am seeing ugliness like this: Is there anyway to get Android to display rounded corners via -webkit-border-radius in a more pleasing way? Most modern desktop browsers and Mobile Safari seem to antialias their corners, but not Android's renderer. I'm really hoping I don't have to do t...

Chrome's changing height when loading pictures - how to get actual height with jQuery on load

I have the following: var offset = {top: target.offset().top + target.height() + 3, left: target.offset().left}; target.offset(offset); this happens on $(document).ready(..) However, in chrome, the target object is not positioned with the appropriate height. When I placed an alert(..) to show the actual height, I sa...

Vertical spring spacer CSS

Hello, I'm new here at stack overflow. :-) How can I create a div that automatically change it's height to get all the space filled? I've tried with height:"auto" but doesn't work... :( For example: <div style="height:300px"> <div style="height:50px">...</div> <div>The height of this div varies from page to page...</div> ...

Is it possible to shrink an image and make it your background all in css?

I have a div, and I want to make a whole background image fit inside the div, even though the image is a little bigger than the div, how would I go about shrinking this dynamically? ...

JQUERY onClick change 'top' attribute

I am trying to create a vertical scroller using jquery and I am having troubles with my code.. function scrolldown() { var newtop = $('.scroll-content').css('top') + '250'; $('.scroll-content').css({top: newtop}); } The css: .scroll-content {position:absolute; top:0px} No problems with CSS I can change values in fir...

Can you extract a background-size 'auto' value, using jquery, javascript, or css?

If I have background-size: 50% auto; What if I want to extract the auto value, basically to be able to get the new height or width? ...

IE8 and Firefox CSS selector difference?

I am getting really weird behavior, it seems like IE8 is not handling the child selector in CSS correctly. Consider the following: <html> <head> <style> ul>li {font-style: italic} </style> </head> <body> <ul> <li>Hello </li> </ul> </body> </html> This displays Hello in italics on FF, but not on IE8. If you change the...

Jquery toggle nested div will lose transparency after toggling instead of preserving the same attr.

There's a div2 here that has transparency using a css style tag. However the transparency goes away after toggle. It seems to work fine with toggle() but not toggle([number]). Any fixes? Thanks guys. doesn't work in IE7 OR FF 3.5 CSS .transparentDiv { filter:alpha(opacity=50); background-color:#d5ffd5; height:800px; ...

Confused about CSS inheritance

I've been reading about CSS and I am really confused about how the inheritance works (I think thats the right term for the following). In CSS I can declare a class: #mytext { } then I see some people do: p.mytext { } But why do that? Why can't they just do: <p class="mytext"> Without declaring p.mytext? Does it make sense what I...

HTML elements with "built-in" margins

While working on my first project that completely uses css for layout rather than tables like I'm most used to and comfortable with I ran into a strange issue. Apparently there are some elements that have margins built in. In other words, if you set the "margin-top: 0px" then the element is rendered differently than if you don't. I didn'...

default css empty selector?

I'm looking for a CSS tag that can provide an id for text. I want to be able to modify the text with javascript, so i need something like: <texttag id="the_id">the text</texttag> All the other tags i've tried affect the formatting one way or another. For example it would be used in a sentence, such as: You live in <texttag id="town...

How do I change the css of a child of $(this)

I have a page of search results, each of which has an icon to add each result to a group (listed on the page in a hidden UL element: display:none;). Right now it works... but when I click on the icon for one result listing... the UL appears under every single result. I need it to only show up for the result listing that I am clicking t...

Add Fadein to existing CSS for mouseover link

Is it possible to take my existing css for a mouseover link with a background image, and make it fade in and out? Which is the best approach for a fadein/out? I'm already using jquery. .sendB { width: 100%; height: 125px; background: #5266EB url('/img/send.gif') no-repeat 50% 0; margin-top: 22px; float: left; } .s...

Separate stylesheets

How could I use separate stylesheet for Opera? Like: <![if !IE 6]> <link rel=»stylesheet» type=»text/css» href=»ctyle.css» /> <![endif]> But for Opera? (For all versions of Opera) ...

Loading JSON values into DIVs with jQuery

Hi there. I am trying to load images from the Facebook graph api into a div on my website. I have a div for each of the albums on my facebook page, each has the url id in the rel value. I am trying to loop through the graph api urls and load the first image in each json datablock using the code below: $('.thumbnail').each(function(ind...