css

simple photo viewer

Hi, I am fairly new to all this. I am trying to make a simple photo viewer with javascript or anything easy to alter. I just want a next and prev. button to take you between photos. Click next and next photo shows. Just that simple. I have a flash version but I would like to avoid using flash. I've been doing it the long way by makin...

Preserving CSS styles with Javascript

Hey guys, I have a web service where people can edit their pages CSS, but I have a bar on the footer of that page that I want to make consistend on every page... People are, right now, able to "remove" it with CSS and I really didn't want to go and parse the CSS to remove rules related to that bar... Is there a way to preserve the styl...

Div box not expanding on overflow

I have the following html (not proper code but for understanding) <div id=content-wrap overflow-hidden> <div1 float-left overflow hidden> </div> <div2 float-right overflow hidden> </div> </div> Now when the content in div 1 is more, then it expands the main container but by div2 which is on the right is not expanding Is there any wa...

Fading in/Fade out text in IE

I had a problem and whipped up a quick solution: fade-in and fade-out a series of quotations. My solution works just as I want it in every browser except any of the IEs. The only problem with the IEs is that the text does not fade in and fade out; the text simply pops into existence. I believe I've run into a similar problem before when...

How could i use a specific font for my web site.

Possible Duplicate: How to add some non standard font to website? I am working on new project. In this web site the client used a font (Volta Regular). Please tell me how I can use it. This font is missing on my computer. How can I use it? This problem would come with all machine. How could I adjust it through CSS? ...

Put Raphael (SVG) canvas behind other divisions to make them clickable?

I am using Raphael to create lines between divisions in an organization chart (or flow chart), but I need to be able to actually click on the divisions and content behind it. If I could make the canvas be behind the other elements, kind of like a background image, that would be idea. Is this possible? ...

Auto width on tables

A html table cols and rows are generated dynamically, i.e, for the first instance it could be two rows and there columns. and next time it could be two rows and 10 columns My question is how to adjust the with automatically of the table so that the table always appears 100% in the page adjusting the coulmn size and row size <tabl...

Is there a way to use custom font saved in fonts directory in our web directory?

I am trying to do something like this font-family: url('fonts/myfont.ttf'); You might think this is a stupid question, but if there is a way tell me ...

css problem - 'post link'

Hi, I am no css expert so I am wondering whether someone could help. I have several forms to delete an item like this: <form action="/Items/DeleteItem" class="deleteForm" method="post"> Some text <input id="Id" name="Id" value="14014" type="hidden"> ...

CSS filter for IE6 standard mode and quirk mode?

Is there any CSS filter can be applied to detect IE6's standard mode and quirk mode? The story is that a jQuery script is using $.support.boxModel to handle different rendering mode. But the CSS use the *width hack to define the dimension. But this hack can only filter whether the browser is IE but not the real rendering mode IE is on. ...

tips on writing my first html embeddable widget?

i have been asked by a client to develop a javascript(mootools)/html/css/php based game as a widget which can be deployed anywhere. I have not written a widget before, so would love to get some tips and experiences so that i know some of the pitfalls before i start! Thanks :) Dan ...

Tapestry 5, loading css from filesystem

We are creating a Tapestry 5 webapp with an external designer creating and maintaining the css-files of the application. We would like him to be able to make changes to the css-files without the need to change the webapp, prefarably in the configurable path in the filesystem. So what would the best way to do this with Tapestry 5? ...

watermark text css

What is the css for the watermark text in a textarea or input box. The text should be opaque as in Title of stackoverflow saying "What's your programming question? Be descriptive" when asking question ...

print CSS still showing some background images when printing

I am receiving some strange begaviour in IE6 when printing a page. For some reason it is printing out parts of a CSS background image sprite. I have overridden all background-image declarations with: * {background-image:none !important;} But to no avail. I didn't think background images were supported by default anyways so this is a...

Firefox can not layout nested tables properly?

I want to implement a collapsible menu. I plan to use table component to simulate a menu, and nest a sub table into a table cell to simulate a sub menu. Below is my code, it works as expected in IE, Chrome and Safari, but it doesn't work well in Firefox: <html> <body> <div id="menu" style="position:absolute; left:150px; top:100px; z-...

PlaceHolderMain controlling td width of hard-coded values

In my custom .master page I have the following code: <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server" Visible="true" /> This prints out the main content of my page. It contains this structure <table ID="OuterZoneTable" width="100%"> <tr>...</tr> <tr id="OuterRow"> <td width="80%" id="OuterLeftCell">...</td>...

How do I center align horizontal <UL> menu?

I need to centre align a horizontal menu. I've tried various solutions, including the mix of inline-block / block / center-align etc., but not being successful. Can someone help me please? :) Here is my code: <div class="topmenu-design"> <!-- Top menu content: START --> <ul id="topmenu firstlevel"> ...

Designing a table which shrinks when browser size is adjusted

I have a HTML table which I want to make fluid so that when it resizes, the table collapses/shrinks, just like the table on http://sis.bristol.ac.uk/~cckhrb/webdev/code/site/fluid.htm. How can I design such a table? Thanks ...

How to add exception in this jquery code?

How to add exception in this jquery code? $(function() { $("table tr:nth-child(even)").addClass("striped"); }); this code is applying on all tables. but for specific pages i don't want strip effect. I've different body id on each page. I want to know how to add exception for a id. $(function() { $("table tr:n...

How can I make dropdown menu main item stay in position?

I've built a menu with Superfish v1.4.8. Everything is fine but I need to show menu item's hover state when mouse is over its drop-down items. In case I want "Ürünler" to be at its hover state when it's dropdown menu is open. Site can be seen here. ...