Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3361812
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:11:52+00:00 2026-05-18T03:11:52+00:00

a very basic question: When I include the DOCTYPE at the beginning of my

  • 0

a very basic question:

When I include the DOCTYPE at the beginning of my .html document:

<!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">

It messes only a small part styling of the page.

Here you can see a live example:

Without DOCTYPE (Right) – With DOCTYPE (Wrong)

I think I kind of “know the answer”, (besides that the HTML and CSS seems to be written by a smart chimp), the problem seems to be that some of the elements of the CSS I’m using are not part of the standards of the DOCTYPE I’m using and because of this, some parts are not loaded (in plain English).

That’s just me guessing but if this is the case, I would like to know which elements am I using that I should´t and (if specific enough) a “general guide” as to how should they be used.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:11:53+00:00Added an answer on May 18, 2026 at 3:11 am

    Try adding px after the 700 in your body style (and everywhere you specify a width in css)

    The reason for this is that adding a doctype puts the browser into standards mode (a good thing). You should run your css through a validator to catch errors you get in standards mode.

    Sorry! We found the following errors (5)

    line # Error

    2 body Value Error : width only 0
    can be a length. You must put a unit
    after your number : 700 700

    18 p.titulo Property text-shadow
    doesn’t exist in CSS level 2.1 but
    exists in : 2px 2px 2px #aaa 2px 2px
    2px #aaa

    140 #rect Value Error : width only 0
    can be a length. You must put a unit
    after your number : 235 235

    151 #form Value Error : width only 0
    can be a length. You must put a unit
    after your number : 235 235

    174 #navcontainer ul Value Error :
    margin only 0 can be a length. You
    must put a unit after your number : 5
    5

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very basic question: how do I write a short literal in C++? I know
This is a very basic question. I'm just on my mission to learn ASP.NET
I know this maybe a very basic question but I'm having a bit of
I realise that this is a very basic question, but it is one which
I have a very basic question and need help. I am trying to understand
I have a very basic question. I want to use STL's list instead of
I have a very basic question on returning a reference to an element of
Maybe I am wrong, but this seems to be a very basic question. Suddenly
This may be a basic question but how can I include a module with
Very basic question about iPhone memory management: Say I have a viewController with several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.