xhtml

how to load an external css file if javascript is disabled.

how to load an external css file if javascript is disabled. Should work in IE 6 to 9, Firefox Google chrome, Safari I tried <noscript> And keeping <noscript> inside but it's not working in IE 7 ...

Dynamically set iframe scrollable

Hi, I have to make an iframe element from java script so it isn't scrollable anymore(the javascript function is called from a iframe inside the one that I have to change).Now it works but only on Firefox and Chrome and I must do it on IE also. I have no alternative than to change the scroll bars to the parent iframe and to understand wh...

putting spacing between the leftmost and rightmost cells and the table border

Hi I am making a table in HTML and I do not want the borders of the leftmost and right most cells to extend all the way till the table border. For example: | ____ | So as in the above example, while the cells themselves have a contiguous top border this border does not extend all the way till the outer table border. It would be great...

HTML and Body are not taking up the entire browser - HTML5 problem?

I have no idea what I'm doing wrong, but for some reason, I'm experiencing a bug with my markup that is causing my body element and my html element to not take up the entire viewport in the browser. I can't get to the bottom of this. It first reared its head when I tried to add a 10px purple border to the top and bottom of my body. If...

XHTML JavaScript preload images before rest of page is loaded

Hello! Is there anyway I can delay the display of the HTML code (page) until some certain images are loaded so that the layout appears with the header images as well as the HTML? Thank you. ...

Image appears in FF, but not in IE. Very weird indeed.

Check the following site out, top logo image shows up in FF, but not IE8. Any ideas? http://blog1.catdynamics.com/ ...

JSF: Ternary operator used to assign a value to an <f:param> fails

Hi, I am using JSF tags within an XHTML file. My intention is to enable or disable a <rich:MenuItem> context-menu item by setting the "disabled" attribute to "true" or "false" appropriately. To do this, I am using a backing bean variable in a ternary operator and setting an <f:param> value to either "true" or "false" based on the ...

how to work with JSF in xhtml?

I need to create application using JSF in XHTML. What is the procedure for accessing Myfaces tags in xhtml coding page! and i also need to configure ajax... please help me! ...

Can't get text to center?

Hi, I have a div wrapped around a couple span's and using JS to make the span's fade in and out (for testimonials). Everything works, except I can't get the span text to center within the div. Here's the relevant code: HTML - <div class="slideshow"> <span style="font-size:12px; color:#333333; font-family:Lucida Grande,Lucida Sans ...

Inline SVG Served By Python Script in Google App Engine Not Appearing

I'm writing an app that pulls chunks of svg together and serves them as part of a page mixed with css and javascript. I'm using Python and Google App Engine. What I'm doing works fine on my local development server but fails to render once it's deployed. So here's some test python to build a response: self.response.headers.add_header(...

Is there a method for keeping the id I set for an asp .net control when it outputs to HTML?

When I create a form, I try to make accessibility a top priority, but the output from asp .NET negates some of this. For example, when I set a label tag for an input tag, I create it a such: <label for="frmFirstName">First Name<span class="required">*</span></label> <asp:TextBox id="frmFirstName" CssClass="textbox" runat="server" /> B...

Can Struts 1 in XHTML mode have 2 forms submitting to the same action?

We're converting an older Struts 1.x app from HTML4 to XHTML1.1. To force compliance from the Struts tags, we're adding <html:xhtml /> to the top of our JSPs. After doing this, JSPs using <html:form method="post" action="/foo.do" styleId="bar"> threw the following error: Cannot specify "styleId" when in XHTML mode as the HTML "...

jQuery "Cycle" plugin causing content to not center, how can I fix this?

Hi, I'm trying to use the jQuery "Cycle" plugin (http://jquery.malsup.com/cycle/) to rotate testimonials located within <span>s ... however the plugin is causing my content to not be centered. Yesterday morning someone here pointed out the <span> elements are being absolutely positioned by the plugin: $slides.css({position: 'absolute', ...

Is it possible to vertically center a SPAN within a DIV?

Here's what I got: <div class="slideshow"> <span style="font-size:12px; color:#333333; font-family:Lucida Grande,Lucida Sans Unicode,Calibri,Arial,sans-serif;">Lorum ipsum delore sit amet. Lorum ipsum delore sit amet. Lorum ipsum delore sit amet. Lorum ipsum delore sit amet. Lorum ipsum delore sit amet. Lorum ipsum delore sit amet. ...

Styling a parent from a child off-site Iframe?

This is most likely possible, but I want to style the main page using CSS while all I have access is a sandboxed iframe child. Please note that the child iframe is on a different subdomain than the parent. Can this be done? and how? ...

window.location.hash not working?

I have a link (index.html#services) and a <div id="services> that I'm trying to change the background color of when the link is clicked and then fade back. I'm using the latest jQuery and jQuery Color plugin, and: $(document).ready(function(){ if(window.location.hash === '#services') { var service = $('#services'); ...

HTML / CSS - Styling <b> or <i> tags instead of <span>

Hi I was just wondering if it's a good idea to do this. For example if you want to create round-cornered tabs using CSS, you would need a structure like this: <li> <a href="..."> <span> Tab </span> </a> </li> ... then you put the left tab corner background on the link tag and the right one the span (maybe it's a bad example, because ...

Is it valid HTML5 to use a single tag for a div?

For example: <div/> instead of <div></div>. I did this and apparently the HTML5 validator passed this as valid. I was wondering it this is actually true? PS: I'm serving page as application/xhtml+xml ...

Should I use HTML 5 <nav> for footer links also, which are not primary navigation?

Sould I use HTML 5 <nav> for footer links also, which are not primary navigation? or it should be once in a page? ...

How to override font-size (em) in this condition?

I don't want to edit p {font-size:1.3em; padding-bottom:15px;} and can't add page specific external css files. only for one page of site I want to remove font size from p {font-size:1.3em; padding-bottom:15px;} and want to add in this #mainIntro {font-size:1.3em;} How to make this possible? The questions is how to neutralize the fo...