PDA

View Full Version : Can someone help me with my website?



CorkMan
17 Jul 2009, 11:17 AM
Hey everyone I am looking to make an intro page for my website and I have a background image and a video. I made the background image like a border for my video so that when my video is in the middle of the background image it looks like it has borders going around it. I have tried to align my video with my background image but it does not workout at all so could anyone please help me out? I can get the background image centered into the page but cannot get the video in the middle of the borders and when I try to create a div class and use margins or padding neither of them work I could be doing something wrong there but I could really use the help. Anyone?

Wickham
17 Jul 2009, 03:15 PM
I assume that you have the body background centered using
body { background: #333333 url(imagefilename.jpg) top center no-repeat fixed; } or something like that.

Now create a div for the video code:-

CSS style:-
#videodiv { width: ??px; height: ??px; margin: auto; }

Markup:-
<div id="videodiv">
video object and nested embed tags here
</div>

and the div should center horizontally in any resolution like the background image.