View Full Version : how do i center video on my home page
iophotography
Nov-09-2006, 09:09 AM
check out my page want to center video on that page
www.imageonephotography.smugmug.net
Barb
Nov-09-2006, 09:36 AM
check out my page want to center video on that page
www.imageonephotography.smugmug.net (http://www.imageonephotography.smugmug.net)
Hi :)
I have centered the video for you. What I did was give your video in your header box a div id, i.e., <div id="video">. Then I used CSS to position it, i.e., #video {text-align: center;}. I also lowered it so it wasn't all bunched up against your navbar by adding margin-top: 20px; to the #video code.
Andy
Nov-09-2006, 09:36 AM
check out my page want to center video on that page
www.imageonephotography.smugmug.net
Hi. Your website is
http://imageonephotography.smugmug.com
not..
www.imageonephotography.smugmug.net
the easiest way is to wrap such things in a <div> and i did that for you. Look at your header html and see. Then I added #myvideo {text-align: center;} to your CSS.
Andy
Nov-09-2006, 09:37 AM
Either way works :thumb
iophotography
Nov-09-2006, 09:47 AM
thanks guys really helped out alot
iophotography
Nov-09-2006, 12:56 PM
ok it seems my video is on everypage i just want it on the home page.
www.imageonephtography.smugmug.com
Andy
Nov-09-2006, 01:17 PM
Add this to your css:
#video {display: none;}
.homepage #video {display: block;}
:thumb
iophotography
Nov-09-2006, 01:25 PM
thanks ;one day im gonna get that CSS down perfect
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.