css

iframe size to fit in parent div

I've got the following html: <html> <body> <div id="note1" class="note"> <div class="note-header">Note</div> <div class="note-content"></div> </div> </body> </html> with css: body { background-color:black } .note { width: 150px; height: 150px; background: #111111; } .note h4 { text-align: center; } ....

CSS3 transitions to dynamically created elements

I'm trying to animate a dynamically created html element with CSS3 transitions. I want the animation to start just before the element is created. For these i create a class that set the original position of the element and then I set the target position by the jquery css() method But the new element it just apears in the target posit...

How to start background repeat-y after 46px space?

#data-wrapper { background:url("../images/repeat-bg.png") repeat-y 0 46px transparent;} I want to start repeat-bg.png as a repeat-y but after 46px area from top of #data-wrapper. Is it possible to do like this? ...

overflow: hidden not working

Hey all, I am having a tough time with overflow: hidden. Basically I am trying to hide the overflow of an unordered list which is located in a div. I have no idea why this isn't working though. Instead of hiding it, it breaks my li's from a horizontal layout to a vertical layout. The unordered list is carousel and the container is list. ...

Dropdown menu code needed for web versions

I have a site where in the top header area I have a dropdown which only works when the user hovers the mouse over it (http://liquor.com). But in mobile versions I've been informed this behaviour won't work. So I'll put a conditional statement in the code and display another dropdown menu, but I'm curious what code should be used for a m...

space/gaps between divs on website when viewed on iPhone/iPad

I'm having some difficulty getting my website to display properly when viewed on the iPhone and iPad. The webiste (not even close to being finished) is www.lzkconcepts.com. The website displays properly when viewed on every desktop browser I've tried (safari, chrome, firefox, IE), however, on the iPhone/iPad there is a tiny gap/spac...

Css header problem

I have a header class which has a background and a header-center class which provides the nav content for the header. My problem is that if the window is smaller than the header-center width, the header background doesn't span the entire top when you scroll over. Stackoverflow seems to have the same problem, try resizing it and you'll se...

Bottom-Margin with varying content height

Hi, I have a problem I have been trying to solve, but without any progress. This is a summary of my code: <div id="container"> <div id ="content"> Some content here (Varying height) </div> </div> body { background-image: url('img/bg_Body.gif'); margin:0px 0px 0px 0px; } #container { position: relativ...

Two levels of rows in a HTML table with fixed width <thead>?

I have a table with fixed width columns: <table width="100%" cellpadding="0" cellspacing="0"> <thead> <tr> <th>Title</th> <th>Description</th> <th>Hours</th> <th>Rate</th> </tr> </thead> <tbody> <tr> <td style="width:100px"></td> ...

best jquery way to find and filter and apply css classes

ok say we have <span class="foo">7</span> <span class="foo">2</span> <span class="foo">9</span> and want to apply a css class of 'highest' to 'span.foo'.text > 7 and css class of medium to values > 4 and <= 7 and css class of lowest to <= 4 example of desired result: <span class="foo medium">7</span> <span class="foo lowest">2</spa...

Any workarounds to this IE8 bug?

Hello, Is there any workaround to the IE8 bug where some elements seem to collapse the vertical margins and reset it when hover over the element? You can test the bug at: http://www.gilbertybolona.com/seguros/generales/ And this is a screenshot: d.pr/Plf8 All of the elements should be equally separated. ...

Xml and Css problem

Hello! I want to add some image to my xml/css document. I have in my xml file line like this: <screen image="http://www.gram.pl/upl/news/120081127090543.jpg"/&gt; and in css: screen:after{ background-image:url( attr(image) ); display:list-item; width:20px; height:30px } And I can't see any image :/ ...

ASP.NET DataBoundField DataFormatString, how can I add html correctly?

Hi All, I have a DataboundField in a grid. I'm trying to display a date in Euro format and the time. The time should be wrapped in a span with a css class applied to it. I am using this, DataFormatString="{0:dd/MM/yyyy <\span cla\s\s='tinyDate'>hh:mm:ss</\span>}" It's actually pretty close, except the span tag is literally rendering i...

CSS Horizontal Menu is showing list bullets

i am using this code... for a Horizontal CSS menu which is working fine on jsFiddle but when i am using it in my site.. it is giving me bullets of the list, see the image below.... HOW TO GET RID OF THESE BULLETS F1 F1 Help !!! Any Key ...

Rails Giving Each User Their Own Customizable Stylesheet

Hello, This is a fairly straightforward question. I have Users in my Rails3 Application. I want to give each user the ability to customize their stylesheet through a form so they can essentially have their own themes. I was wondering how I can go about getting this to happen and what is the best way that you have seen it done? Wou...

How to make shadow on border-bottom?

Hi, I need to apply the border shadow on border-bottom by CSS3. I just want to apply CSS3 shadow on bottom. If it is possible, please let me know. I need Answer ASAP. Thanks Talha Ashraf ...

Stacked Tabs Interface (two or three rows of tabs)

I am looking for a solution for having stacked tabs in a web page. I know there are tons of tab implementations out there, but I haven't been able to find one that allows for multiple rows of tabs. When you select a tab from one of the rows above, that row of tabs would drop down to just above the content area (Windows does this in som...

Problem with HTML anchor in absolute DIV 300px from the top..?

I have a page with a header position:fixed DIV at the top. This DIV is height:300px and it is fixed so that it's always visible even when users scroll down. My content is in another DIV below. It has a position:absolute with a top:300px. So when you first load the page, it starts below my header and when you scroll, it scroll undernea...

Access CSS fonts from Android 'Assets' folder

I'm trying to change the font of web pages loaded in to a Browser app developed for Android. Currently my custom font is hosted in a URL & I access the font from there by injecting a JavaScript to the page to change the style sheet (CSS) font face. Here is the current code: var css = '@font-face {font-family: "dhanika"; src: url(http:/...

Menu doesn't display in IE7

Can you check this page and let me know why the menu doesn't work on IE7? It shows up all the way on the right, almost out of view: http://bit.ly/9hhDY5 The page works okay in other browsers (including IE8 and IE9). Thanks. ...