css

HTML + Javascript: Dynamic Image Resize?

Hello, I am trying to get some javascript to programatically adjust a html img tag's width to display various sized images correctly. I have a fixed width img tag at 800px to display an image, this is the max width. If the image is wider then 800px I want to display it at 800px wide; If the image is less than 800px wide I want to pres...

Double Float Bug - IE

Hey, i am trying to fix a site I am helping a friend with, and in IE it is displaying the navigation bar like it is stacking on top of each other. Is that a part of the double float bug, I tried adding display:inline, but I still have that problem. Thanks, Ryan URL: http://www.flanels.com/RadiantecHOME.html CSS: http://www.flanels.c...

How to create an HTML CSS Page with Header, Footer and Content

There are 3 parts to the page. Header, which has unknown content at design time as it is populated with text at runtime. All the text must be displayed, no scroll bars.( I think height : 100% does this) Content, the content should fill the page below the bottom of the header to the top of the footer. if there is more text in the cont...

Website/Web App Architecture Advice

Let me set the stage here. I'm a very junior developer who's recently made the transition from Network Admin who does some WinForms for his employer to a full-time development position working on an ASP.NET product that will be transitioning to Silverlight. I have precious little web development experiences. Some basic understanding of ...

Tables vs CSS

Duplicate: http://stackoverflow.com/questions/30251/tables-instead-of-divs#30271 and http://stackoverflow.com/questions/83073/div-vs-table#83121 I am working on building a web app using ASP .NET MVC (needs to run on IE 7, FF 3.0), does it matter if i were to use tables rather than css for positioning and design? As a developer I have...

div/CSS question regarding width and padding

Hi all - I'm having some trouble with this code: CSS: div#header { width: 100%; background-color: #252525; padding: 10px 0px 10px 15px; position: relative; } div#login { float: right; position: absolute; right: 10px; top: 5px; } HTML: <div id="header"> <img src="./img/logo.jpg" /> <div id="...

Using two css files in the same html file

Is it possible to use 2 CSS classes that have the same name for the selectors, etc. in the same HTML file? If so, how do you differentiate between the two when styling elements? ...

Using the ">" selector with IE6

I have written some CSS which targets elements using the parent > child selector. Specifically for tables so I can apply certain styles to the headers and footers like this table > thead > tr > th ... table > tbody > tr > td ... //there are other uses in the css as well This works great, except in IE6. What is my best approach for unf...

CSS - Centering a page - then making the page 100% height

I'm trying to center a page and then make it 100% in height. I have a div called "content" as the parent element of all elements in the HTML page. What do I need to do next? I'd like to stay away from any CSS-hacks. This is currently working in IE7, but not in Firefox 3. EDIT: I added height: 100%; to #content that's what made it work i...

float un-ordered list items(ul) next to one another

Hi all, I wanna place two child un-ordered lists side by side. They are having Class Names L and R Heres the relevant part of the HTML markup. <ul class="SearchResult"> <li class="Pagination"> <a id="lnkPageNumber_top_1" class="ACTIVE" onclick="ShowPage(this.id);" style="cursor: pointer;">1</a> <a id="lnkPageNumber_top_2" onclick="Sho...

How to change font color of disabled input in Firefox

When I disable input elements the text is taking the font color: "#000000" in Firefox. This is not happening in IE. Please check the below page in IE and Firefox. Let me know how to give it a gray look as in IE. test ...

getting unitpngfix to work

I'm trying to get the unitpngfix to work but I can't seem to get the png to show up in IE6. This this my code: <html> <head> <style type="text/css"> #boxouter { width: 12em; height: 12em; background: url(gradient.gif) #ffdf00 bottom repeat-x; position: relative; } #boxinnerbr { ...

JavaScript/ CSS/ Image reference paths

Hi, I was wondering if anyone has any preference for referencing images/ css or javascript files in their sites? The reason I ask is if a client wants to host the site we've writen under a virtual directory, the site usually has to have it's file references changed - even down to url (...image path) in CSS files because we usually deve...

Help Me Solve Font Sizing Issue

Hey Guys, There's been this ongoing display issue my team has been having with the font size rendering larger than it should within the product. We've been having a heck of time pinpointing what it is. Here's a screenshot of a before and after shot: http://quickbase.intuit.com/images/font-issue.gif Notice that in the before, it looks ...

Programmatically combining images in PHP

I'm a big fan of Yahoo's recommendations for speeding up websites. One of the recommendations is to combine images where possible to cut down on size and the number of requests. However, I've noticed that while it can be easy to use CSS sprites for layouts, other image uses aren't as easily combined. The primary example I'm thinking of i...

Drop Down Box Not Fully Displayed (All Browsers)

This would be my issue I have a drop down that's not displaying fully. I'm not sure even where to start so here's the HTML surronding the drop down and I'll provide the CSS also. HTML <div id="add_item"> <ul class="vert"> <li> <ul class="horz"> <li class="name"> <select style="width: 195px; padding: 0px; margin: 0px;" ...

Ignoring superscript in title tags

I work on a database driven website. Most pages' titles are the names of partners we have, and served from a database using php. For example one page might be called "Experian". The problem is that some of the values for partner names don't work because the values are things like $partnername22 = Discover<sup>tm</sup> Magazine I...

What's the best website for learning HTML Semantically?

Where should I point someone to learn the basics of HTML/CSS? I personally got my start from HTMLGoodies way back in the day, but while I thank Ken Burns for getting me going, I'm loathed to send someone out to that site nowadays as I think it's dated. Obviously there are many sites out there that cumulatively contain all the informati...

Firefox vs IE vs Chrome vs Safari...

Currently I am designing a website and I am finding it VERY difficult to display the website perfect on ALL browsers. Is there any rules, suggestions etc to follow? Thanks ...

Any workaround for printing repeating backgrounds?

We have an HTML page which displays a bunch of pretty bars using divs and repeating backgrounds. We are in the process of making a report out of this that can be printed nicely, but this may take some time because we don't have a reporting framework in place. As an interm solution we'd like to make the HTML version printable. The backgro...