/    Sign up×
Community /Pin to ProfileBookmark

valid method of removing margins (HTML 4.01 Transitional)

I was validating my page and found that the attributes, topmargin, leftmargin, marginwidth, marginheight, are not considered attributes for HTML 4.01 Transitional.

I got around marginwidth and marginheight by simply not using them but I haven’t found anything that validates and removes the margins. I was thinking of using a div layer for the entire page and position this but is there an easier way?

Havik

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Apr 29.2003 — How about css properties,

margin-left and margin-top
Copy linkTweet thisAlerts:
@havikauthorApr 29.2003 — I never thought of using that on the body tag, thanks.

Havik
Copy linkTweet thisAlerts:
@nkaisareApr 29.2003 — You can go a step further and try HTML 4.01 strict. Believe me, its fun and it isn't too difficult.
×

Success!

Help @havik spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...