Click here to Skip to main content
15,897,273 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Web Design Company New York Pin
Peace ON23-Jul-10 19:07
Peace ON23-Jul-10 19:07 
QuestionA real CSS question! Pin
Randor 21-Jul-10 15:10
professional Randor 21-Jul-10 15:10 
AnswerRe: A real CSS question! Pin
Roger Wright21-Jul-10 19:02
professionalRoger Wright21-Jul-10 19:02 
GeneralRe: A real CSS question! Pin
Randor 22-Jul-10 7:38
professional Randor 22-Jul-10 7:38 
AnswerRe: A real CSS question! [modified] Pin
Mustafa Ismail Mustafa21-Jul-10 22:15
Mustafa Ismail Mustafa21-Jul-10 22:15 
GeneralRe: A real CSS question! Pin
Randor 22-Jul-10 6:54
professional Randor 22-Jul-10 6:54 
AnswerRe: A real CSS question! Pin
Chris Maunder22-Jul-10 8:55
cofounderChris Maunder22-Jul-10 8:55 
GeneralRe: A real CSS question! [modified] Pin
Randor 22-Jul-10 9:56
professional Randor 22-Jul-10 9:56 
Chris,

I cannot get the code you provided to work with W3C XHTML DOCTYPE compliance mode. As I mentioned in one of my previous responses I get different height attribute behaviors based on the DOCTYPE declaration.

Paste this into a notepad generated HTML file and observe that it does not render full screen.

HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div style="background-color:gray;height:100%">
<div style="height:100px;background-color:red;"> First row </div>
<div style="height:100px;background-color:green"> Second row </div> Final row</div>
</body>
</html>


I need the XHTML DOCTYPE because without it... the HTML renders completely different across all the browsers I am testing. My generated HTML tables are mimicking the behavior of a CListCtrl... but without the XHTML DOCTYPE the my tables look completely different depending on what browser I am using.

Is there something I am missing?

Best Wishes,
-David Delaune

P.S.
Off-topic: Where is the documentation for the codeproject <code> tag? I thought there was a lang=html argument for correct code syntax highlighting.

Edit: Nevermind... its on the PRE tag.

modified on Thursday, July 22, 2010 4:06 PM

GeneralRe: A real CSS question! Pin
Chris Maunder22-Jul-10 10:07
cofounderChris Maunder22-Jul-10 10:07 
GeneralRe: A real CSS question! Pin
Randor 22-Jul-10 10:50
professional Randor 22-Jul-10 10:50 
GeneralRe: A real CSS question! Pin
Chris Maunder22-Jul-10 14:29
cofounderChris Maunder22-Jul-10 14:29 
QuestionI hope, I hope! Pin
Member 419459321-Jul-10 12:27
Member 419459321-Jul-10 12:27 
AnswerRe: I hope, I hope! Pin
Dalek Dave21-Jul-10 13:05
professionalDalek Dave21-Jul-10 13:05 
QuestionI hate CSS Pin
Christian Graus21-Jul-10 12:10
protectorChristian Graus21-Jul-10 12:10 
AnswerRe: I hate CSS Pin
Dalek Dave21-Jul-10 12:16
professionalDalek Dave21-Jul-10 12:16 
AnswerRe: I hate CSS Pin
Roger Wright21-Jul-10 19:07
professionalRoger Wright21-Jul-10 19:07 
GeneralRe: I hate CSS Pin
Christian Graus22-Jul-10 12:54
protectorChristian Graus22-Jul-10 12:54 
AnswerRe: I hate CSS Pin
Chris Maunder22-Jul-10 8:57
cofounderChris Maunder22-Jul-10 8:57 
GeneralRe: I hate CSS Pin
LunaticFringe29-Jul-10 8:33
LunaticFringe29-Jul-10 8:33 
QuestionSerious CSS Question Pin
Dalek Dave21-Jul-10 11:57
professionalDalek Dave21-Jul-10 11:57 
AnswerRe: Serious CSS Question Pin
DaveAuld21-Jul-10 12:07
professionalDaveAuld21-Jul-10 12:07 
GeneralRe: Serious CSS Question Pin
AspDotNetDev21-Jul-10 14:30
protectorAspDotNetDev21-Jul-10 14:30 
AnswerRe: Serious CSS Question Pin
jeron121-Jul-10 12:13
jeron121-Jul-10 12:13 
GeneralRe: Serious CSS Question Pin
Mustafa Ismail Mustafa21-Jul-10 22:04
Mustafa Ismail Mustafa21-Jul-10 22:04 
AnswerRe: Serious CSS Question Pin
RichardM121-Jul-10 17:36
RichardM121-Jul-10 17:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.