/    Sign up×
Community /Pin to ProfileBookmark

please help with html code!!

Hi there,
My webpage is split up in <td>, and on one <td> i have a background color which is sort of gray, the code is:
<td width=”60%” valign=”top” bgcolor=”1C1D1C” border=”3″ bordercolor=”pink”>

the background color wirks great in IE, just how i want it to look, but in stupid firefox :/ ….. it doesnt show up. It does if I put basic colors like “blue” or “pink” but 1c1D1c does not work in firefox, can sum1 please sugges what I should do.

Thanks much!!!?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@Shanu_chaudharyNov 21.2008 — I dont know what the issue with you...coz I tried that and it worked fine for me...
Copy linkTweet thisAlerts:
@cootheadNov 21.2008 — Hi there evan5,
[color=navy]can someone please suggest what I should do.[/color][/quote]
Yes, stop coding slovenly. ?

IE, may well accept poor coding but compliant browsers do not.

The attribute [b]bgcolor[/b] is deprecated in favour of CSS.

I would presume that this is maybe a mystery to you and probably you would

only be able to implement inline styling at your present level of coding.

If this is the case use, instead of [b]bgcolor="1C1D1C"[/b]...

[indent][color=navy]style="background-color:#1c1d1c"[/color][/indent]

[b]Further reading[/b]:-

Get the basics of CSS here...
[list]
  • [*]http://www.w3schools.com/css/default.asp
  • [/list]

    [i]coothead[/i]
    Copy linkTweet thisAlerts:
    @evan5authorNov 21.2008 — thank you Coothead!!

    that worked! i'm actually pretty familliar with cascading, just was'nt sure how to make the <td> in cascading, because I have more than one <td> on my pages.. would it be like

    td1

    {........

    ......

    }


    that way, or somethning like dat?

    thanks again for the help
    Copy linkTweet thisAlerts:
    @cootheadNov 21.2008 — Hi there evan5,

    give a single element that you wish to style an [b]id selector[/b].

    Give multiple elements that you wish to style a [b]class selector[/b].

    [b]Further reading[/b]
    [list=1]
  • [*][url=http://www.w3.org/TR/CSS2/selector.html]CSS2 selectors[/url]

  • [*][url=http://www.w3.org/TR/CSS2/selector.html#class-html]Class selectors[/url]

  • [*][url=http://www.w3.org/TR/CSS2/selector.html#id-selectors]ID selectors[/url]

  • [/list]

    [i]coothead[/i]
    Copy linkTweet thisAlerts:
    @Major_PayneNov 22.2008 — Highly recommend the suggestions made for coding, but to answer your question directly using your style of coding, the "problem" you had with Firefox is the missing " # " in " bgcolor="1C1D1C" ". Firefox is almost totally compliant with CSS 2.1 and HTML 4.01 Standards and will not parse a color without the " # ".

    Also, do not recommend using named colors. Some named colors, although having different names, will generate the same color because the browser does not know the difference.
    Copy linkTweet thisAlerts:
    @evan5authorNov 22.2008 — "Also, do not recommend using named colors. Some named colors, although having different names, will generate the same color because the browser does not know the difference. "

    what do you mean by that MP?
    Copy linkTweet thisAlerts:
    @Major_PayneNov 23.2008 — Both Magenta and Fuchia use #ff00ff.
    ×

    Success!

    Help @evan5 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.5,
    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: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

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

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...