Web Design and Development Forums

A space between my video and text

This is a discussion on "A space between my video and text" within the CSS Forum section. This forum, and the thread "A space between my video and text are both part of the Design Your Website category.


Go Back   Webforumz.com > Design Your Website > CSS Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old May 3rd, 2008, 09:37   #1 (permalink)
New Member
 
Join Date: May 2008
Location: Leicester, UK
Age: 42
Posts: 7
A space between my video and text

Hi, I managed to upload a video to google the other day and have embedded it in my website. It was easy because the html code was automatically generated so I could cut and paste it onto my site.

<embed id="VideoPlayback" style="width:400px;height:326px" flashvars="" src="http://video.google.com/googleplayer.swf?docid=-2034566006335123781&hl=en" type="application/x-shockwave-flash" align="left" >


I have wrapped text around the embedded video with the align="left" attribute which worked fine but the text hugs right up against the video which doesn't look very good. How do I create a space between the video and the text to improve the look?

http://homepage.ntlworld.com/richard.thomas10/

I think you may find my site a bit basic

Thanx, Rick
highrik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 3rd, 2008, 17:11   #2 (permalink)
Lead Administrator
 
saltedm8's Avatar
 
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,062
Blog Entries: 1
Send a message via MSN to saltedm8
Re: A space between my video and text

this is a css question, moved to css forum

you have added padding but you forgot one silly element ( the px )

padding:10;

should be

padding: 10px;

if you wanted to add padding only to the left of your text you should put padding-left:10px

or another way it could be done is

padding: 1px 2px 3px 4px;

this is defining the 4 sides of the element ( i have added values to show you )

where 1px is that is the top
where 2px is that is the right
where 3px is that is the bottom
where 4px is that is the left

if you wanted nothing for one particular side you can put in something like this

1px 0 3px 4px ;

that is saying we want padding on the top, none on the right, and we do want padding on the bottom and left
__________________
recipebite.co.uk - its a working progress...

Last edited by saltedm8; May 3rd, 2008 at 18:08.
saltedm8 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2008, 07:48   #3 (permalink)
New Member
 
Join Date: May 2008
Location: Leicester, UK
Age: 42
Posts: 7
Re: A space between my video and text

I still seem to be having a problem . I've edited my external style sheet thus:

p.maintext
{
color: green;
font-size: 100%;
font-family: arial;
padding: 0 10px 0 10px;
}

Should this not give me 10 pixels of padding to the left and right of my text? I still have no gap between my embedded video and the text to it's right.

highrik

ps sorry for posting my original message on the wrong forum

highrik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2008, 10:55   #4 (permalink)
 
Join Date: Jun 2007
Location: uk
Posts: 459
Re: A space between my video and text

Hi

To solve your problem you will have to put your embeded image in a div.

<div class="video">

Then in your css

HTML: Select all
.video {
float:left;
margin-right:10px;
}
Give it a try

Pat
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2008, 13:15   #5 (permalink)
New Member
 
Join Date: May 2008
Location: Leicester, UK
Age: 42
Posts: 7
Re: A space between my video and text

Yay!.. that worked. Brilliant . I'm not too familiar with the 'div' tag so I need to take a closer look at it.

Thanx Rick.
highrik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2008, 15:57   #6 (permalink)
Lead Administrator
 
saltedm8's Avatar
 
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,062
Blog Entries: 1
Send a message via MSN to saltedm8
Re: A space between my video and text

sorry, i did not even spot that there was no div there lol
__________________
recipebite.co.uk - its a working progress...
saltedm8 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
making text field text disapear Phixon JavaScript Forum 4 Feb 2nd, 2008 07:49
[SOLVED] Image with text -&gt; text with background alexgeek CSS Forum 5 Nov 13th, 2007 23:25
PM Space JacobHaug Webforumz Cafe 12 Oct 1st, 2007 02:47
Video player preview Image fade to video Lchad Flash & Multimedia Forum 10 Sep 4th, 2007 15:37
Text wrap - widening space gribble HTML Forum 1 Aug 17th, 2005 03:38



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 23:10.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59