Jump to content

Div Issues.


thewindmaker

Recommended Posts

Uh, it is showing up without any styling and Firebug can't find a stylesheet to edit, so you must be linking to it wrong. Have you got the filename and path correct?

Link to comment
Share on other sites

Uh, it is showing up without any styling and Firebug can't find a stylesheet to edit, so you must be linking to it wrong. Have you got the filename and path correct?
i cant even get the page to load
Link to comment
Share on other sites

This sounds like an issue I just had. Ingolme helped me out. You've got some floating divs so try adding "overflow: auto" to the blue bordered div. As Ingolme pointed out to me, floating elements aren't taken into account when calculating the size of a container div.

Link to comment
Share on other sites

I need to ask you why you have the following in the head of your document<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" /><meta name="DC.title" content="XHTML Form" /><meta name="DC.description" content="" />I've been doing lots of research into RDFa (Resource Description Framework in attributes). RDFa uses an xmlns attribute in the <html> opening tag to refer to the correct vocabulary using a CURIE, such as xmlns:dc="http://purl.org/dc/elements/1.1/". Then within elements you can add attributes like dc:property="..." and dc:content="...". Is this what you are trying to do? Why do you have the DC. psuedo CURIE attached to the meta name attribute?

Link to comment
Share on other sites

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">   <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" /> <meta name="DC.title" content="XHTML Form" /> <meta name="DC.description" content="" /> <meta name="DC.date" content="2008-" /> <meta name="DC.format" content="text/html" />  <meta name="DC.author" content="Nick Soentgerath" /> <meta name="DC.language" content="en" /> <title>Sanctum Retreat - Home</title>

First of all, my question is why you would use the DC. thing at the beginning of the metadatas. I might not know something about that but it doesn't make sense to me. Also, title, date, format, author, and language aren't ever read by anything so you don't need to put them in there. Also, putting the XML thing at the beginning can confuse the browser into thinking it is an XML document when it is not.Another thing to change would be the document type. Using XHTML 1.0 strict can cause A LOT of problems unless you know ALL OF THE limits it has. I would suggest going to transitional:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">If you want to define the language of the document for XML and HTML, you can do this :<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">I can't load the page on any browsers, so I can't help you with the DIVs. But above are a few changes you can make that might help out.

Link to comment
Share on other sites

Using XHTML 1.0 strict can cause A LOT of problems unless you know ALL OF THE limits it has.
What problems do you mean?
Link to comment
Share on other sites

putting the XML thing at the beginning can confuse the browser into thinking it is an XML document when it is not.
In fact, it is XML. The whole purpose of XHTML is allowing HTML to be parsed as XML. The correct thing is to put the <?xml ?> declaration, but Internet Explorer displays it in quirks mode if you try, that's why most people omit it.
Another thing to change would be the document type. Using XHTML 1.0 strict can cause A LOT of problems unless you know ALL OF THE limits it has. I would suggest going to transitional:
I would suggest exactly the opposite: if you're not able to make your pages correctly without validating as strict it means you need to re-learn HTML.The Transitional DTD was only intended for those who already had pages before the new standards were created so that their out-of-date pages could still work in the new generation of browsers. That was 10 years ago (December 24th, 1999), it's about time people stop clinging to the Transitional DTD and actually learn the correct way to build a site.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...