HTML - Layered Background Help
Hello,
I am currently working on a website and needed a little help in setting up it's background. I'm referencing ESPN.com's setup for inspiration. They have a background color of #f2f2f2. On top of that is a gradient from red to gray to f2f2f2. On top of this is a background image that seamlessly blends in with the gradient. On top of this they have the content. I am able to get a background color and gradient that only repeats horizontally. I am also able to get the background image and the content to show up on top of this. However, I'm having a few problems. 1) The background image is being placed a few pixels down so that it doesn't quite match up with the gradient. How do I force this to line up to the very top of the page? 2) The content and background image do not "float" in the middle of the browser window. How do I get them to be centered in the browser? Thank you for answering my questions! Similar TutorialsHi everyone. I'm currently trying to code a web page that uses a three level list tree. For example, I want the following effect. Code: 1. First Level Heading 1.1 Second Level Item 1.1.1 Third Level Item 1 1.1.2 Third Level Item 2 2. First Level Heading 2.1 Second Level Item 2.1.1 Third Level Item 1 2.1.2 Third Level Item 2 2.1.3 Third Level Item 3 etc etc. Is there any way I can achieve this using lists? As I cannot figure it out. I'm thinking I may have to scrap the list idea, and just use standard paragraphs instead. EDITED: Think I've worked it out. Is this semantically correct though? Code: <ol style="list-style-type: decimal;"> <li>First Level Heading <dl> <dt>1.1 Second Level</dt> <dd>1.1.1 Third Level 1</dd> <dd>1.1.2 Third Level 2</dd> </dl> </li> <li>First Level Heading <dl> <dt>1.1 Second Level</dt> <dd>1.1.1 Third Level 1</dd> <dd>1.1.2 Third Level 2</dd> </dl> </li> </ol> Is it possible to put a smaller background image on top (like in layers) of my old background image? I have a background image, but I want to put a smaller image on top of that one, but for it to be treated also as background image. This image is a black vertical rectangle, but is faded on the edges to give a transparency, so its a .png. So ultimately what I am trying to do is put this black rectanlge on top of my original background image and with the transparency on the edges of this image, be able to see my original background image. How can I do so? Also what I was thinking was that this faded background would be scaled to fit different screen sizes, so do "width: 75%"? Just so that it ALWAYS stays at 75% no matter what screen size it is viewed on. Is this the right approach towards getting this result? How to insert a background on this site ? http://videosearch.w-b0x.com/ hi in this site www.muaythaistuff.com they have some tatoo kinda background and i have tried to put this one on my site and it makes a lot of them in one page so my question is how can i set this tatoo image only in the top like in this very site and the rest will be black color? Hi, I wanted to use an image for the background of my page, but also have a DIV layer with images that look like they are coming out of it. For some reason though when I set the image as the background, it becomes just a bit brighter. This completely throws off what I'm trying to do because there are elements of the background in the DIV layer image and now the DIV image looks darker than the background ruining the effect. So I've tried to solve the problem by putting this huge background image as a DIV layer and aligning it to top: 0 left: 0. The colors now match. The problem is though that the image is way bigger than the browser window so scrollbars appear on the sides. I don't want this. Can anyone offer a suggestion to either of my problems? Thanks! hey everyone, when im making my website i put something in it then move it up the website to a different position so its where i wnt it. when i move this up my website it leaves a blank space at the bottom. how do i get rid of thisblank space?? the code im using is... <div style="position: relative; top: -300px; left: 200px;"> ive also tryed postioning it in css and its just doing the same thing if someone could please help i would be very grateful thanks How can I set background in a page. please help me. I've just put up a new page - mbccc.net - and I've used a picture, a .jpg image file, for the background. Sometimes it displays alright but sometimes it doesn't - sometimes it begins to 'tile' at the edge. When I view the page in my IIS on localhost it always does that. When I view it in my html editor - NVU - it always does it. My question is why does it do that and what can I do to prevent it? The picture is 196kB .jpg of 1024 x 768 pixels. I've been viewing in Firefox, what it does in other browsers I don't know. What should we do if we want to use pictures for background? regards, ab im trying to use a image hosting site to make a image a background for a web site so they can see my idea what would the code look like to make that happen Hey all Ok i wasnt sure wether to put this in html or css but i decided to put it here and hpe for the best. Ok , I have set a background color and a background image which all works well. Except that when i insert the banner it isnt at the top of the screen it is about a cm down from the top. This is because of the background image but im not sure how to fix it. Thankyou in advance, Jake. I want to give a division a background image but I'm not sure how to do it. I wrote a code that says: Code: #links { background-image: Graphic1.png } But nothing happened. What am I doing wrong nad how can I fix it? nevermind... Thank you for helping and this site is awesome! Take care... Ryan Okay, I have this background image...it's fine and dandy...but I want the stripes on the left side to continue to go down the page if more information is put on the page and it not stop at where it does on the page. I can't repeat it because THE EXOTIC ZOO will be repeated too down the page. Any suggestions of what to do? Here is the page I'm talking about: http://thexoticzoo.webs.com/rats.html Hi i have an issue with my background not displaying correctly. I know i have not sliced the template etc but i can only assume the same problem will occur when i do. I have set a background image to the page but its not inline with my image background, How would i go about making sure everything is lined up when publishing it? Ive messed around with margins etc but there seems to be a default margin at the top which i cant remove. http://www.banks-twins.biz/testhome.html Thanks. Alex. Heres the link Well, It looks fine, unless you view it in full screen, if you view it in full screen you'll notice that the white and grey backgrounds extend along with the main background, I want the white and grey background to stop where the footer is, and the main background (#cccccc) to continue on down. You can use View > Source for the source code (as it's rather big and I'd rather not have something that big in my post) CSS Code: Quote: .leftcolumn{ width:273px; padding-left:9px; padding-bottom:20px; background: #F1F1F1; float:left; text-align:left; } .rightcolumn{ width:503px; float:right; text-align:left; } left column = grey column right column = white column I'd like to have a scaling background like on this site: www.burton.com I'm using DreamWeaver, is this possible? P.S., I'd also like to build a scaling x-y navbar like they have on that site if it's possible. Thanks in advance! Hi, I'm using an image for my web background, but I have a little problem. I have to go and size the image correctly in the image editing program for it to look right, but then if you resize the webpage it doesn't look right. Is there a way to make the image automatically resize itself depending on the size of the person's screen? Hello. I need some assistance in figure out how to make a fixed/linkable/image. I used this code here
HTML Code: <body style="background-attachment: fixed; background-repeat: no-repeat;" background="XXX.jpg"> which worked great in keeping its place. Then I added HTML Code: <a href="http://www.davesite.com/"> before and after but no luck. Im trying to get that link to work for the background too, but its not working out at all. "Sadly no HTML skills whatsoever" What's Up? OK, So im using. Code: <object width="331" height="159"> <param name="movie" value="background.flv"> <embed src="background.flv" width="800" height="600"> </embed> </object> to display a flv video on my webpage, but i also want to display a image and two textboxes over the top of that video. Is it possible? if so how? Thanks Bye. i'm trying to set an image from my harddrive as the background but it doesn't seem to be working. I've been trying <body background="image location.jpg"> but it doesn't work. Any thoughts or solutions? thanks |