473,748 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

background css property for body selector

64 New Member
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 2531
sedigh mohseni
64 New Member
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 Recognized Expert Moderator Expert
CSS properties are not inherited by default, you have to assign that by the inherit keyword (where valid).
Jun 5 '11 #3
sedigh mohseni
64 New Member
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
13581
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: Arial, Geneva; background-image: url(images/back.jpg); }
4
1599
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 in. Page in question is here: http://www.stgeorgearmoury.co.uk/dev/index.html Any help greatly appreciated. PS The original, done before I even knew what a tag was, is at
8
5042
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 vertical repeat. -> right background, defined in html section, aligned top and without repeat it may look weird, but I don't think my problem is due to these margins.
6
3756
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 class="logo"><img src="./images/ipeer_logo.png"></div>
3
4837
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 the background of the td to be different for the currently selected linkbutton than for the other linkbuttons:
5
11094
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 have tried lot's of things and spent hours on this, I thought I might give it a try here. One of the TD's uses HTML to set the background, the other one uses CSS styling:
2
1825
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
1307
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 the HTML bgcolor attribute, but what can I use as an equivelant for the HTML background attribute? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
3
27217
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 image is suddenly gone from the bottom. #background { position: absolute; top: 0px; bottom: 0px; left: 50%;
3
1482
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 answer...I just can't find it. The site is http://sloc.riococokids.com. To be clear, just under the body tag is the "wrapper" div. It should inherit the body styling, but it is not. Thoughts?
0
8995
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8252
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.