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.
|
|
|
|
|
![]() |
||
ID Question
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
||||
|
||||
|
to correct your code, try this:-
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
Re: ID Question
Quote:
Also, why is the green section like that: <h1 id=<"htmlnesky">... |
|
#4
|
|||
|
|||
|
I'm still not getting the white background
kaz |
|
#5
|
||||
|
||||
|
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)
|
|
#6
|
|||
|
|||
|
Guess what,
I solved my problem by using the id of another header. Is that alright? kaz |
|
#7
|
||||
|
||||
|
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)
|
|
#8
|
|||
|
|||
|
Quote:
|
![]() |
| Tags |
| question |
| Thread Tools | |
|
|
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 |