/    Sign up×
Community /Pin to ProfileBookmark

Hi All I have a code for the date to be displayed on my site (not the time)
i will link to the doc soon as soon as i can upload itand when viewed in ie it displays it corrctly but when viewed in firefox say the year is 105!?!?! ? 😮

Help Please

Thanks ?

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@felgallJun 01.2005 — The code would be Javascript and is incorrectly using getYear() instead of getFullYear().
Copy linkTweet thisAlerts:
@nitrexoxideauthorJun 02.2005 — Hi, The tip above worked perfectly! Thanks!

the only other thing that doesnt work with firefox is:

body {text-align: center}

:eek:

This is standard css but does not align my tables! ?

Please Help Me (Again :rolleyes: )
Copy linkTweet thisAlerts:
@FangJun 02.2005 — [I]text-align: center[/I] Aligns text in conforming browsers, IE will also align tables.

Align you content:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>center contents</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<style type="text/css">
<!--
body {text-align:center;}
#container {margin:0 auto; width:850px; text-align:left; border:1px solid red;}
-->
</style>

</head>
<body>
<div id="container">
<div id="contents">contents</div>
</div>
</body>
</html>
×

Success!

Help @nitrexoxide 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,
)...