xhtml

Restrictions on PHP include()

Hey guys, I am separating some XHTML from PHP by putting the XHTML into a separate file and then using PHP's include() function within the PHP script. This works perfectly fine, however, users are still able to access the .html file directly if they know the address. They can't really do much with it, but I would rather it not show. ...

Margins or padding for spacing?

The following example is identical in almost all browsers including IE6: http://jsbin.com/adica3 #one {border : 1px solid red;padding:20px} #two {border : 1px solid yellow} p {border: 1px solid blue;} .marg {margin: 0;padding: 0} .padd {margin: 20px} </style> </head> <body> <div id="one"> <p class="marg">Padding to div</p> <...

Is there a list of mobile browsers which I must support and test for?

Is there a list of mobile browsers which I must support and test for? There are so many mobile devices and browser, it may not be possible to test for all and support all. Yahoo made a list for Desktop browsers http://developer.yahoo.com/yui/articles/gbs/ Does anyone knows any suggested browsers list like this for Mobile browsers. ...

Is there any possibility of rendering differences betweeen firefox 3 and 3.5 and IE 7 and 8, even if we are not using any new css 3 property/selector?

I'm making a site for European client and he said Firefox 3 and IE 7 and 8 has more user than others browser for desktop in Europe http://gs.statcounter.com/#browser_version-eu-monthly-200812-201001-bar I've only IE 7 and Firefox 3.5.7 installed in my PC. Should I download portable Firefox 3.0 and test in it too even if I'm not using a...

Looking for XHTML / CSS WYSIWYG editor recommendations.

Hello. I'd like to know if there is a good XHTML / CSS editor available. The intent is to be able to create html pages that resemble a design in question. The editor should be WYSIWYG and output should be standards compliant (XHTML, CSS2) and the markup produced should be readable and lean. On Googling, I do get a list of many product...

How to stop Eclipse IDE from trying to download DTDs for validation?

I have a XHTML-file using the following doctype-definition: `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;` Eclipse is trying to validate the file by using the referenced dtd file, which results in this error: ParseException: Error validating the model: Se...

How to set a define inside other define

Hi all! I'm developing a web application in jboss, seam, richfaces. I'm using a template(xhtml) as master page of all others and there i set two insert tags. <ui:insert name="head"/> <ui:insert name="body"/> The problem is that in pages that use this master page as template, the <ui:define name="head">...</ui:define> must be defined i...

Is it necessary to add cellspacing="0" cellpadding="0" in <table>?

Eric meyer reset css is suggesting "tables still need 'cellspacing="0"' in the markup". Is it necessary? and what is the benefit of border-collapse: collapse; and border-spacing: 0;? and it's only suggesting to use cellspacing, while table has another property called cellpadding? /* tables still need 'cellspacing="0"' in the markup */...

Visual Studio development server serving HTML content type. How can I switch to XHTML?

I'm having the problem described here, which is caused by using , when the page being served has content type "text/html" instead of "application/xhtml+xml". Where can I switch VS2010's web server configuration to serve XHTML? ...

Open browser windows without menu bars (JavaScript?)

The users in my community want the chat to be opened in a small window without all the control bars. So I think a popup window without scroll bars, location bar, status bar and so on would be the best solution. Right? What is the best way to have such a popup window? JavaScript? Can I do it like this? BETWEEN AND <script type="text...

Problem with header form position

So I have a signup form on the top of my website and in safari/firefox it looks perfect but on ie7 for some reason it is pushed down so it does not look right. I tried removing all padding/margins on all of those elements but it still seems like there is something pushing it down when that happens. Does anyone know why this is happening....

Would it be better to combine print css with main css or using another CSS file for print would be better?

Which way is prefer ed and why to use for print, another css file with media="print" or @media print {....} in same file? ...

How to make round corner stretchable content box from 1 div ? see example image

With only 1 <div> and for heading i will use <h2> HTML code would be this.I only want to add one class or id to main div. <div class="round"> <h2> heading text </h2> <p> lorem ipsum. lorem ipsum. lorem ipsum. lorem ipsum. lorem ipsum</p> <a href="#"> Link text</a> </div> Any css or js solution? remember i want to use only one...

jQuery Selection doesn't work when TD element contains BR elements

Ran into a bit of an issue with some jQuery code, but in essence, I have a table that may or may not have BR elements in the first column. When there are no BR elements the following code works fine and a value is returned. However, when there are BR elements, the code values to return any values for most of the columns. Any ideas what m...

Container tag that can go in HEAD?

In a section in the <head> tags of my document I have code that lets me use the Id of my asp.net control from JavaScript like this: <script language="javascript" type="text/javascript"> var customerId = '<%= Me.CustomerTextbox.ClientID %>'; </script> However, if I want to modify the page structure in later stages of the page life cycl...

How to get a newline in JSF (plain text)?

I am using JSF to generate text and need newlines to make the text easier to read. I have an HTML version which works great, I hacked it together using <br/> (I'm not proud of that, but it works). I would like to do the same for the plain text version such as inserting \n. I am doing something like this: <customTagLibrary:customTag> ...

Does sifr 3 works in all desktop's A-Grade browsers?

Does sifr 3 works in all A-Grade browser if css, javascript is enabled and flash player is installed. and which Flash player version is needed to see sifr 3 text in all browsers. ...

What are cons of global css reset * { margin: 0; padding: 0; }?

What are cons of global css reset * { margin: 0; padding: 0; }? What people prefer eric meyer css. This is eric mayer css html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup...

How can I use yahooui library with rtl

Can anyone give me information on how to support rtl menus for arabic and hebrew web pages with yahooui libraries? I have added dir="rtl" to xhtml pages but it appears that the yahooui libaries override. Im aware that yui 2.x doesnt support rtl but Im using yui3.x. Any assistance would be greatly appreciated. ...

Check condition and automatically redirect to a link, html

I'm creating a sample website using xhtml with javascript support. Also using php for server side programming. I need to redirect the webpage to some other page from an html page, after checking some condition.What is the best method to implement this. I've done it using header("link"); but since i'm using it inside the tag, it shows u...