473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

background css property for body selector

hi

are css background properties that are set for body element considered for html selector when there are's any css background properties for html selector? or body element is an exception that for it background-image is inserted into margin area?


(i ask this question because background-image is not inserted to box of the element for ordinary element , however for body element when there are'nt any background style for that,this event occur)

thanks alot for your help.
Jun 4 '11 #1
3 2508
I think i find my answer
there is an exception for inherit css property and that is css property ascend from body element to html element but there is another problem an it's background property is not inherited at all
is that right?
Jun 4 '11 #2
Dormilich
8,658 Expert Mod 8TB
CSS properties are not inherited by default, you have to assign that by the inherit keyword (where valid).
Jun 5 '11 #3
ok, you're right but when i use for example below css
Expand|Select|Wrap|Line Numbers
  1. body {
  2. background: blue url('snow.jpg') no-repeat fixed;
  3. }
  4.  
i watch this property affected based on window browser even without i say nothing about html , is it possible that there is default settings for browsers and that's caused that?
thanks alot
Jun 5 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Kevin Yu | last post by:
When I declare on HTML page <LINK href="mycss.css" type="text/css" rel=stylesheet /> .... <BODY class=myclass> in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY:...
4
by: Merlin Fradley | last post by:
I am re doing a friends site using css, and have a problem with the formating applied to the body not registering in firefox. It works fine in IE and Opera, the only other browsers I've tried it...
8
by: Serge Hartmann | last post by:
hi there, I created two different backgrounds for the same page to obtain a (fake) left margin and a (true) right margin. -> left background, defined in body section, aligned bottom and with...
6
by: bigoxygen | last post by:
Hello. I would like to have a title bar (that has a logo) that is flush with the top of the browser display window. My code right now looks like this... <body id="evalResults"> <div...
3
by: Gil | last post by:
Hello, I use VB.NET and have a series of linkbuttons that are inside individual <td>s. Like this: <td background="image.gif"><asp:linkbutton id="myID" runat="server"/></td> I would like...
5
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I...
2
by: somequestion | last post by:
how can i solve this problem i really wanna apply background image into the <asp:TableCell> but it's not allow i think i use asp.net 2.0 give me some help..please
1
by: Nathan Sokalski | last post by:
I am using an ASP:Table Control to make a table. I know that the HTML TD tag has a background attribute and a bgcolor attribute. The TableCell has a BackColor property, which is the equivelant of...
3
by: KNDesign | last post by:
I've set a background image to repeat-y and at 100% height. It appears fine when I open the window, but when I resize to a smaller height so that I must scroll down to see the rest, the background...
3
by: David Wilson | last post by:
I have a body selector whose inheritance is being lost at the top of my page. I have followed my tags and CSS and I don't see why it would no longer be inherited. I'm guessing there is an easy...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.