Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-01-2006, 10:34 AM   #1 (permalink)
Banned
 
slugger's Avatar
 
Join Date: May 2004
Location: Baudland
Posts: 2,433
Default Problem in HTML


I faced this problem the other day when I was learning HTML programming (also ensuring that the code was compatible with XHTML 1.0).
I wanted to to use a picture as a background, change the color of the fonts in the whole page and in a seperate page change the colour of the background of the page.
So the code that I used was like this

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head><title>itgiot</title></head>
<body background="img08.gif" bgcolor="#ff9933" text="#934ce8"></body>


othijh jhjhgfkljgfbf <font color="#00FF00">mdhlpkzpg</font></p>
</html>
These tags and attributes were in accordance with what had been mentioned in the tutorial.
The file name of the image was correct and the appropriate hexadecimal number was used to change the font and background color.
Inspite of this, I was unable to obtain any effects associated with the use of the attributes.

To see if I had diasabled the use of site specified font color, from the tool bar in Internet Explorer I went to

Tools>Internet Options>Colors
[img][/img]

There the 'Use Windows Colors' option had been enabeled.
So I disabled it to see what happens, but still I didnot get the desired result.
Also the the same problem arises when I try to change the color of the font of a particular portion the page using the 'color' attribute for the "font" tag.
Also I have taken care to close each tag
I am able to insert normal images in the page using the 'src' attribute to the "img" tag.
I preveiw the pages using IE 5.00.3502.1000
When I tried to open the page that I created on a different computer, the page turned out normally as I had expected.
Debugging doesnot turn up any errors.
I'm using AceHTML editor.
Can anybody please help me with this.
slugger is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-01-2006, 11:34 AM   #2 (permalink)
Wise Old Owl
 
siriusb's Avatar
 
Join Date: May 2005
Location: Chennai, India, Asia, the Earth, the Solar system, the Milky Way, the Local group, this Universe.
Posts: 1,171
Default

Except for the placement of "<//body>", there is nothing wrong with the document. What is wrong in ur browser? A screenshot?
__________________
http://myxp.blogspot.com
-----------------------
Winchester 3200+ @2,500MHz
LeadTek 7900GT VOLT MODDED @ 680 core, 1800 mem
2x1GB Transcend DDR400 @ DDR454 2.5,3,3,5,1T
siriusb is offline  
Old 03-01-2006, 02:55 PM   #3 (permalink)
In The Zone
 
ramprasad's Avatar
 
Join Date: May 2004
Location: 00-1D-7D-5A-34-2E
Posts: 375
Default

Check if u have enabled "Allow only websafe colors"
ramprasad is offline  
Old 03-01-2006, 03:51 PM   #4 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

It works fine on my IE and Firefox.
But I too feel that probably that misplaced "</BODY>" tag is causing the problem for you.
It should be at the end of the body, i.e. just before the </HTML> tag.
Just correct it and see if it renders the right way.

-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 03-01-2006, 05:49 PM   #5 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

hmm

Actually background property should work in XHTML 1.0 (its ruled out from XHTML 1.1)

anyways you can try out following code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/transitional.dtd"> 
<html> 
<head><title>itgiot</title>
<style>
body{ 
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:11px;
         color:#934ce8;
	background-color:#ff9933;
	background-image:url(img08.gif);
	background-repeat:repeat;
}
</style>

</head> 
<body>


othijh jhjhgfkljgfbf <font color="#00FF00">mdhlpkzpg</font></p> 
</body> 
</html>
make sure that css file and image file both are in same folder. (or if they are in diff. then change the path according to that...)

Regards,
Deep
Deep is offline  
Old 07-01-2006, 12:20 PM   #6 (permalink)
Banned
 
slugger's Avatar
 
Join Date: May 2004
Location: Baudland
Posts: 2,433
Default problem found

thanx 4 helping me out. the prob actually lay in the accesibility tab where I had enabled the
Quote:
Ignore colors specified on Web Pages
option.

As a result I was facing all the problems, that i was facing.
as 4 the misplaced </body> tag, i typed it in a hurry in a cafe on notepad.
thanx a ton once again.


ps: - I apologise 4 posting the wrong scrrenshot in my problem post. I had actualy intended to post this screenshot.
slugger is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


 
Latest Threads
- by Charan
- by abhidev
- by Sujeet
- by Sarath
- by Krow

Advertisement




All times are GMT +5.5. The time now is 09:05 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2