xhtml

Should i keep #wrapper{ width:100%} in print css?

Should i keep #wrapper{ width:100%} in print css? because on screen my design is a fixed width design 960 px. but there are so many paper type and sizes in the world and anybody can take print on any size paper, bigger and smaller. So if in print css i do not specify relative width then i think print of page will cut of from right size ...

Help with CSS - getting an element to fill 100% of the remaining vertical space

Hi folks I'd consider myself a reasonable standard CSS/XHTML chap but I'm pretty baffled by this. The problem is available here: http://furnace.howcode.com - (note that the site is still in development, most stuff doesn't work, and it's likely to change fairly quickly as it is updated often). Basically I've got a fluid layout that ne...

Position: absolute a div over Flash

Is it possible to position: absolute a <div /> over a Flash banner without adding wmode="transparent" to the banner? I have a lightbox that needs to appear above my ads but I can't directly modify the banners as they come from a third party. Edit: The problem mainly occurs in IE where the Flash banner is shown above the lightbox. ...

What's making my page extend slightly beyond the viewport? [CSS]

Basically I'm a tad confused. You'll see at http://furnace.howcode.com , in the second column, the bottom scrollbar button is extended slightly beyond the end of the viewport. I'm pretty confused as I've been examining the CSS and can't find anything that's causing this. Can you have a look? It's probably something simple that I've just...

Can XHTML nest more XHTML?

It's legal to nest SVG documents inside XHTML documents; but is it legal to nest XHTML documents inside other XHTML documents in the same fashion? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Sup</title> </head> <body...

How to manage and make look of complex data <table> identical in all browser?

What are helpful CSS properties which can be helpful for table? I have to make so many complex tables which have different type of colors in columns, thead, borders, padding, alternate row and column colors etc. I want to use as less as possible of css classes. How to make complex tables design with combination of as much as possible of...

What is the correct way to open a form submit in a new window now target is deprecated

Normally I would us <form target="_blank"> But looking through http://www.w3schools.com/tags/tag_form.asp I notice the target attribute is deprecated. So what is the correct XHTML compliant way to perform such an action? UPDATE: Thanks, I appreciate that opening new windows is not generally a good idea but in this case it's a thir...

How to use and manage relative font values as easy as we use px

what are cons to use relative values em and % for fonts, What is rounding problem? and how to avoid/solve rounding problem. Is there any calculator? How to use relative values as easy as we use px ...

How to solve Firefox 2.0 cross browser issues?

How to Firefox 2.0 cross browser issues? When i make site using Firefox 3.6 then seee site in Firefox 2.0 some time it shows some layout problems. for IE i can use conditional comments and different CSS but what to do for Firefox 2.0 issues ...

table { border-collapse: separate; } or table { border-collapse: collapse; }......

What should i keep table { border-collapse: separate; } or table { border-collapse: collapse; } in my css. which would be better in which condition? ...

Programmatically clean Word-generated HTML while preserving styles?

In my current company, we have this decade old...let's call it a "Hello World" application. While wanting to create a newer version of it, we also want to preserve older entries. These older entries contain hideous Word-generated HTML which was never filtered before. If and when we move to a newer system, I'd prefer to have that HTML c...

How to give CSS3 support to IE?

I use IE7.js but it doesn't have CSS3 support. I use jQuery always in my projects. What is the best lightweight way to give all CSS3 selectors and properties support to IE 6,7,8? I'm not asking for HTML5 support only asking to give CSS3 support in as much as light on performance way. ...

Getting proper indentation using XMLBuilder in a helper

I'm attempting to use a view helper to create some dynamic links based on if you're logged in or not. What I want returned, for sake of easy code readability, is: <ul class="right"> <li><a href="#">Login</a></li> <li><a href="#">Register</a></li> </ul> In the view helper I have this Ruby code: def loginh xm = Builder::XmlMarku...

Is this idea good, one conditional css for all IE version?

Is this idea good? instead of making different conditional stylesheet for different versions. One conditional css for all IE version <!--[if IE]> <link rel="stylesheet" type="text/css" href="all-ie-only.css" /> <![endif]--> and for example this is content of all-ie-only.css selector { color : green\9; /* IE8 and below */ *colo...

xhtml-css coding before Drupal Implementing?

Hi friends, I'm going to start my first Drupal project :) pretty excited. I have many questions in my head :/ but I will find out the answers and learn many about Drupal while working on this project. ok, I have the design completed. now is it better to make xhtml-css coding of all pages, and then implementing these codes to Drupal? ...

iPad vs. iPhone - Adjusting CSS / HTML?

** EDIT ** This is the code I'm using to detect whether it's a mobile device: <!-- Javascript inclusion --> <script type="text/javascript"> var isCE = navigator.appVersion.indexOf("Windows CE")>0;if (isCE){ window.location.href="http://m.mobileversionsample.com/";} </script> <script type="text/javascript" src="/js/jquery-1.3.2.min.js">...

Add centered text to the middle of a <hr/>-like line

I'm wondering what options one has in xhtml 1.0 strict to create a line on both sides of text like-so: Section one ----------------------- Next section ----------------------- Section two I've thought of doing some fancy things like this: <div style="float:left; width: 44%;"><hr/></div> <div style="float:right; width: 44%;"><hr/></d...

How to access parent window variables from object

I've got an XHTML 1.1 Strict document that is loading another XHTML 1.1 document in an <object> element (as <iframe> isn't part of the XHTML 1.1 spec). I'm having trouble in IE8 (don't care about 6 or 7) with accessing a javascript variable, Lightbox, in the parent window, from the document loaded in the <object>. In Firefox and everyw...

Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name?

Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name? any javascript way. I can add any thing in <head>........</head> but can't modify anythings inside <body>.....</body>. in one shot i want to make transparent all png transparent. ...

CSS - strange browser issues with 100% width fluid layout, why?

Hi folks! OK, so if you go check out http://furnace.howcode.com you'll see the example. [The site is in active development so pardon the mess/comments between devs ;) ] To recreate the issue: Click the 'Top Rated' tab. Click the 'PHP Array Looping' result (it's the best example. Note that data is fetched via Ajax and may take a moment ...