CSS & <html> styling problem

This is a discussion on "CSS & <html> styling problem" within the Web Page Design section. This forum, and the thread "CSS & <html> styling problem are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 8th, 2007, 18:39
Junior Member
Join Date: Nov 2007
Location: serbia
Age: 23
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
CSS & <html> styling problem

Before anything i want to say Hi to everyone on webforumz

I have one problem in styling <html> tag.

I use embedded CSS style and code goes like this:

<style type="text/css">
<!--

html {
background-color: #0099CC;
background-image:url(poz.jpg)
}


-->
</style>

But nothing happen. When i use <body> tag its ok. Can i style with CSS <html> like this?

sry on my bad eng
Reply With Quote

  #2 (permalink)  
Old Nov 8th, 2007, 18:41
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

Welcome to the forumz!

I'm not sure what you mean by
Quote:
When i use <body> tag its ok.
Do you have this online?
Reply With Quote
  #3 (permalink)  
Old Nov 8th, 2007, 18:49
Junior Member
Join Date: Nov 2007
Location: serbia
Age: 23
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

No its offline

Look code:

body {
background-color:#33CCCC;
}

Put by bg of web page in that color.
But code:

html {
background-color: #0099CC;
background-image:url(poz.jpg)
}

Aint work

Can i use html as a selector?
Reply With Quote
  #4 (permalink)  
Old Nov 8th, 2007, 18:52
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

Yes you can ...

Put it online on a free host like freewebs ... it would be much easier to help you.
Reply With Quote
  #5 (permalink)  
Old Nov 8th, 2007, 19:01
Junior Member
Join Date: Nov 2007
Location: serbia
Age: 23
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

I try that as example not in real web site.
Source code goes like this:
HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fl0w</title>
<style type="text/css">
<!--

html {
    background-color: #0099CC;
    background-image:url(poz.jpg);


-->
</style>
</head>

<body>
</body>
</html>
But page is simply EMPTY with white bg?

Last edited by karinne; Nov 9th, 2007 at 14:03. Reason: Please use vBcode when inserting code in your post
Reply With Quote
  #6 (permalink)  
Old Nov 8th, 2007, 19:05
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

Hmmm ... tested this in FF, IE6 and Opera and it works.
Reply With Quote
  #7 (permalink)  
Old Nov 8th, 2007, 19:15
Junior Member
Join Date: Nov 2007
Location: serbia
Age: 23
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

It was a FF issue , i dont know why. I just reinstall ff and now its works.
But i have one more question:
HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fl0w</title>
<style type="text/css">
<!--

html {
    background-color: #FFFFFF;
    background-image:url(poz.jpg);
    background-repeat:repeat-x
}
body {
    background-image: url(fak.png);
    background-repeat: repeat-x;
}


-->
</style>
</head>

<body>
</body>
</html>
I put some html bg image and html bg color.
And i want to put body bg transparent image over html background ?
In IE work fine but FF and Opera not.

Last edited by karinne; Nov 9th, 2007 at 14:02. Reason: Please use vBcode when inserting code in your post
Reply With Quote
  #8 (permalink)  
Old Nov 9th, 2007, 06:04
Junior Member
Join Date: Sep 2007
Location: Huntington Beach
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

I will let someone else explain the joys of transparent png's and IE6.
Reply With Quote
  #9 (permalink)  
Old Nov 9th, 2007, 07:04
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,636
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: CSS & <html> styling problem

If you want your transparent PNG's to work in IE 6 you will need to use a hack. I quite like this website: http://homepage.ntlworld.com/bobosola/pngtestfixed.htm.

Cheers,
Reply With Quote
  #10 (permalink)  
Old Nov 9th, 2007, 14:09
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS & <html> styling problem

Quote:
Originally Posted by smdesignworks View Post
I will let someone else explain the joys of transparent png's and IE6.
Hmmm ... the fact that he's saying it works in IE and not in FF or Opera means its something else.

Again ... Please put this online so we can see what's going on since we are dealing with images here.
Reply With Quote
  #11 (permalink)  
Old Nov 12th, 2007, 06:18
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,603
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS & <html> styling problem

Quote:
Originally Posted by smdesignworks View Post
I will let someone else explain the joys of transparent png's and IE6.
yeah, he is saying that the background transparency worked in IE, so there must be something wrong somewhere. It's weired tho, usually IE is making all the stupid problem...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
Reply

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
problem with Myspace HTML DEADHAWK076 Web Page Design 11 Dec 4th, 2007 23:26
Styling problem dhossai Web Page Design 28 Nov 12th, 2007 18:01
styling my form (problem) - link danny322 Web Page Design 9 Nov 8th, 2007 01:22
HTML / div Problem ssnerdy Web Page Design 8 Oct 10th, 2007 14:02
HTML Email Problem!?!?!? uqwebdesign Web Page Design 12 Feb 22nd, 2007 07:12


All times are GMT. The time now is 05:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43