css

How do you get rid of all scrollbars in an iframe in Safari/webkit?

I've tried scrolling="no" and overflow:hidden; Nothing seems to make the vertical scrollbar go away in iframes on Safari/webkit. Anyone know? ...

Open Source HTML to PDF Renderer with Full CSS Support

I asked about getting iTextSharp to render a PDF from HTML and a CSS sheet before here but it seems like that may not be possible... So I guess I will have to try something else. Is there an open source .NET/C# library out there that can take HTML and CSS as input and render it correctly? I must reiterate... the library MUST be free...

What is the most efficient way to give the active page's menu item a "selected" id to change the CSS?

Lets say I have 5 pages: A, B, C, D, and E. I also have a horizontal menu, and each item has a light gray background. Each menu item has a:hover that gives it a medium-gray background, but I want the active page to have a black background, so I define #black { background-color: #000; } Now when the user is on B.php, I want the B ...

How Do I Import CSS With Safari and Opera When Using CSS Hacks?

I have a tough one here, but I think the benefit will be great... I'm using the following CSS hack with PHP. The U variable in the file below is a constant, previously defined (before I include this file) as the URL such as http://example.com/. The P constant variable is defined as the physical file path like /var/www/example.com/. (The...

Displaying a Django query result in HTML - table, list, css divs?

I am working on an django application that will return what historically was a table of information: ISSUE DESCRIPTION INITIATOR INITIATEDDATE ASSIGNEE FORECASTDATE STATUS REMARKS That will be the entrance point for users to sort / filter, etc the list of issues. The columns like ISSUE, DATES, NAMES are of relatively fixed widt...

How to create a table inner bevel in HTML/CSS?

I'm designing this forum layout where I come up with a nice design to draw the forum tables, however, I'm not sure that this can be easily done in HTML/CSS. Before I continue to draw the whole layout, I need to know if this is achievable and how, otherwise, I'll have to ditch this effect and rethink things... For instance, the design I...

Is there a way to rotate text input?

I have to align a textbox and some text, at about 30 degrees, like this: I would like it to work at least in IE and FF. everything I found on the net deals with image rotation. Anyone? ...

Lazyweb: Need javascript that removes li elements based on visited class of a element

Hello, I've got this page which has a lot of data I don't need, as I've already clicked on it, but it repeats often so I have to visually look for blue. I realized this could be more efficient, and asked a CSS friend if I could set the element to hidden based on whether or not the containing link has been visited. Apparently you need ...

CSS fixed repeated background problem

I'm designing a site with a fixed repeated background but can't work out why it has one problem. If you load the site in a small window, then scroll right, the background doesn't carry on and the background colour show's instead. Any ideas? Site is: http://new.focalpix.co.uk/ CSS for the background is: body { background: url(htt...

Designing Websites In Browser (gasp!)

I'm interested in people's opinions on the pros and cons, or downright "hell no's" on designing websites in the browser, and moving away from Photoshop, Fireworks, etc. I've been designing a relaunch for my website, and trying it out in the browser, and I'm not looking back. For example (I use a 960px grid with 12 columns): <div id=...

Turning numbers into colored bars automatically in HTML/Javascript

Hello, I want to auto-generate a HTML table from some custom data. One of the columns in my data is a number in the range 0-100, and I'd like to show it in a more graphical way, most desirably a colored horizontal bar. The length of the bar would represent the value, and the color would also change (i.e. below 20 it's red, etc.) Someth...

How to set the RadioButton icon style to nothing in CSS (in Flex 3)?

You can skin a RadioButton in Flex by setting the following values in CSS: upSkin: Embed(...); overSkin: Embed(...); ownSkin: Embed(...); disabledSkin: Embed(...); selectedUpSkin: Embed(...); selectedOverSkin: Embed(...); selectedDownSkin: Embed(...); selectedDisabledSkin: Embed(...); But, it will still display the little circle icon...

CSS stripped from content embeded via Javascript into Div

I have the following file file: <html> <head> <title></title> <script type="text/javascript" src="/Prototype.js"></script> <script type="text/javascript"> function load_content() { new Ajax.PeriodicalUpdater('content', '/UpdatedContent/, { method: 'post', frequency: 5 }); //var fileref = document.createElement("link");...

Extended css sprites not working with :hover?

Hi, I just encountered this article of an extention of css sprites that enables the spriting trick with foreground images . I tried to use the technique on :hover but it doesn't appear to work in IE and Opera. See my attempt to use this technique for a menu here: http://www.kavoir.com/examples/jenny-css-sprites/menu.html On FF and Safa...

Organizing files of a website powered by PHP, Smarty, JavaScript, MySQL

I am writing an web application powered by PHP, Smarty, JavaScript, CSS, MySQL. There will be some classes, which will be used through out the application. There will be some scripts which will use those classes. Any good article, tutorial, architecture on how to organize files for a web site? P.S. It should contain how to organize a...

How are CSS frameworks used?

For some reason, it never dawned on me that there could be frameworks for CSS. I have been working on my own personal site, and I just really hate 'designing' with CSS (I think more then a few programmers might agree with me). Anyways, I understand the benefits of a framework for a language such as Java, PHP, [insert language]. I down...

Dynamically changing stylesheet path not working in IE and Firefox

I have the following file: <html> <head> <title></title> <link rel="css" type="text/css" href="/empty.css" title="css" /> <script type="text/javascript" src="/Prototype"></script> <script type="text/javascript"> function load_content() { var d = new Date(); new Ajax.PeriodicalUpdater('content', '/DOC?'+d.getTime(), { method: '...

Is it practical to build a web site using strict XHTML and relying on CSS 100% for visual style?

I tend to take the academic approach all too often and adhere to strict principles in my development when the reality is that I could have finished the project sooner had I been a little less cautious. I'm looking to find the right amount of practicality. I want to take the "Zen" approach to designing a site which (in my words) says "Us...

How to stop Visual Studio css intellisense breaking when css is added via a custom control

Hi all, I have created a simple Asp.Net custom control which automatically combines all the correct stylesheets to send to the client (based on browser type/version/etc). However, because at design-time the head tag looks something like this... <head> <cc:CssControl runat="server" /> </head> ...VS is unable to provide intellisen...

CSS Floating Footer

I want to make a footer that stays at the bottom of the viewable window UNLESS it butts up against the content when you resize the window smaller. I tried... bottom:0; position:absolute; ...but the footer gets in the way when the window is smaller. ...