ID Question

This is a discussion on "ID Question" within the Web Page Design section. This forum, and the thread "ID Question are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Mar 11th, 2005, 13:55
kaz kaz is offline
Up'n'Coming Member
Join Date: Feb 2005
Location: Accra
Age: 42
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
ID Question

Hi all,

I run into some problems while posting writing this piece of code for an id.

#htmlnesky{font-family:Verdana, Arial, Helevetica, Sans-Serif;font-size:12;font-weight:bold;font-color:#333399;font=weight:boldbackground-color:#ffffff'}

the HTML is:
<h1 id=<"htmlnesky"><font size="3">HTML_NESKY.P</font></p>

Now I was expecting a heading with a white background, but instead all I got was a bolded inscription. Why is that>

Please Help!

kaz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Mar 11th, 2005, 14:36
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
to correct your code, try this:-
Code: Select all
#htmlnesky{
           font-family:Verdana, Arial, Helevetica, Sans-Serif;
           font-size:12; font-weight:bold; font-color:#333399;
           font-weight:900; background-color:#ffffff}
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Mar 12th, 2005, 00:02
Junior Member
Join Date: Jul 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: ID Question

Quote:
Originally Posted by kaz
Hi all,

I run into some problems while posting writing this piece of code for an id.

#htmlnesky{font-family:Verdana, Arial, Helevetica, Sans-Serif;font-size:12;font-weight:bold;font-color:#333399;font=weight:boldbackground-color:#ffffff'}

the HTML is:
<h1 id=<"htmlnesky"><font size="3">HTML_NESKY.P</font></p>

Now I was expecting a heading with a white background, but instead all I got was a bolded inscription. Why is that>

Please Help!

kaz
Your problem should be the highlighted code. You forgot the semicolon (;) before it.
Also, why is the green section like that:
<h1 id=<"htmlnesky">...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Mar 14th, 2005, 10:27
kaz kaz is offline
Up'n'Coming Member
Join Date: Feb 2005
Location: Accra
Age: 42
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
I'm still not getting the white background

kaz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Mar 14th, 2005, 11:55
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
what you need to be saying is:
<H1 id="whatever"....
get rid of the "<" after the equals sign.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Mar 14th, 2005, 14:12
kaz kaz is offline
Up'n'Coming Member
Join Date: Feb 2005
Location: Accra
Age: 42
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Guess what,

I solved my problem by using the id of another header. Is that alright?

kaz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Mar 14th, 2005, 14:38
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
it was nothing to do with the id you used.

it's just that there were 2 mistakes in the code you posted.

Missing ";" after "bold" and before "background"
#htmlnesky{... font-weight:bold;font-color:#333399;font=weight:boldbackground-color:#ffffff'}

"<" shouldn't have been there.
<h1 id=<"htmlnesky"><font size="3">HTML_NESKY.P</font></p>

it would have worked otherwise....
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Apr 25th, 2005, 15:01
New Member
Join Date: Apr 2005
Location: Oslo, Norway
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by spinal007
it was nothing to do with the id you used.

it's just that there were 2 mistakes in the code you posted.

Missing ";" after "bold" and before "background"
#htmlnesky{... font-weight:bold;font-color:#333399;font=weight:boldbackground-color:#ffffff'}

"<" shouldn't have been there.
<h1 id=<"htmlnesky"><font size="3">HTML_NESKY.P</font></p>

it would have worked otherwise....
Didn't anyone spot this: font=weight:bold ?? Correct code:
Code: Select all
#htmlnesky{
   font-weight: bold;
   font-color: #339;
   font-size: 1em;
   background-color: #fff;
}
And then <h1 id="htmlnesky">Some header</h1>[/code]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
question

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Question longstand PHP Forum 4 Oct 21st, 2007 01:12
another question please....... napstar Starting Out 3 Feb 20th, 2007 22:28
css question Daniel Web Page Design 29 Feb 16th, 2007 12:13
Question!! JacobHaug JavaScript Forum 5 Dec 28th, 2006 18:22


All times are GMT. The time now is 15:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42