LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-19-2014, 09:52 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Coding on border in re color style


Hi all,

Where can I find coding example on border for video?

Example:
Code:
<div style="padding:10px;background:#000;webkit-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;width:560px;margin:0 auto;overflow:hidden;">
    <iframe src="http://www.youtube.com/embed/MOVIEID?fs=1&autoplay=1&loop=1&rel=0&border=0&modestbranding=1" width="560" height="315" frameborder="0"></iframe>
</div>
in respect of color and style?

Thanks

Regards
satimis
 
Old 08-20-2014, 12:00 AM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Code:
border: 2em solid #aa1211;
that's it. I'd put that around the div rather than the iframe but you can try either.
 
Old 08-20-2014, 07:52 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by notKlaatu View Post
Code:
border: 2em solid #aa1211;
that's it. I'd put that around the div rather than the iframe but you can try either.
Hi,

Thanks for your advice.

I'm trying to create borders on the video
Taoist Temple Lahug, Cebu City.
http://phgallery3.reynoldstocks.com/cebu-city-3/

I found that code on Internet. I have no idea how to change the border colour nor its width on both sides. Previously I saw video with wooden frame on 4 sides. I wonder how to make it? Could you shed me some light? Thanks

Regards
satimis
 
Old 08-24-2014, 04:30 PM   #4
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
As usual in things code-related, I can think of a few ways of achieving this but I think the easiest would be to place the video inside a div that has a wood grain background image. So the html would look like....

Code:
<div class="wood">
   <div class="video">
    <iframe src="http://www.youtube.com/embed/MOVIEID?fs=1&autoplay=1&loop=1&rel=0&border=0&modestbranding=1" width="560" height="315" frameborder="0"></iframe>
   </div> <!--closes video-->
</div> <!--closes woodgrain-->
and the css:

Code:
.wood {
  backround: url("/path/to/wood/image.jpg");
  padding: 4ex 3em;
}

.video {
   border-radius: 20px;
   width:560px;
   margin: auto;
   overflow:hidden;
}
This should create a video div nested inside of another div (which has woodgrain as its image), with some padding around the edges. The padding will reveal the woodgrain, giving the appearance of a wooden border around the video.

You might have to adjust margins ond image repeats/tiling and things like that, but that is the general idea.
 
Old 08-24-2014, 09:42 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by notKlaatu View Post
As usual in things code-related, I can think of a few ways of achieving this but I think the easiest would be to place the video inside a div that has a wood grain background image. So the html would look like....

Code:
<div class="wood">
   <div class="video">
    <iframe src="http://www.youtube.com/embed/MOVIEID?fs=1&autoplay=1&loop=1&rel=0&border=0&modestbranding=1" width="560" height="315" frameborder="0"></iframe>
   </div> <!--closes video-->
</div> <!--closes woodgrain-->
and the css:

Code:
.wood {
  backround: url("/path/to/wood/image.jpg");
  padding: 4ex 3em;
}

.video {
   border-radius: 20px;
   width:560px;
   margin: auto;
   overflow:hidden;
}
This should create a video div nested inside of another div (which has woodgrain as its image), with some padding around the edges. The padding will reveal the woodgrain, giving the appearance of a wooden border around the video.

You might have to adjust margins ond image repeats/tiling and things like that, but that is the general idea.
Hi,

Thanks for your advice.

Coding
Code:
<div class="wood">
   <div class="video">
    <iframe src="//www.youtube.com/embed/ETiWVZcVfmw?feature=player_detailpage" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
</div> <!--closes video-->

.wood {
  background: "http://path/to/dark_blue_horizontal_1.jpeg";
  padding: 4ex 3em;
}

.video {
   border-radius: 20px;
   width:960px;
   margin: auto;
   overflow:hidden;
}
</div> <!--closes wood-->
It didn't work.

following coding appears on webpage
Code:
.wood {
background: “http://path/to/dark_blue_horizontal_1.jpeg”;
padding: 4ex 3em;
}

.video {
border-radius: 20px;
width:960px;
margin: auto;
overflow:hidden;
}
Also tried
Code:
 background: url("http://path/to/dark_blue_horizontal_1.jpeg");
same result.

Video still works

Regards
satimis
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Coding Style checking zinat Programming 14 05-05-2014 01:58 PM
sed syntax for changing color and border-top and similar sysslack Programming 4 07-21-2012 07:23 AM
GTK coding style MTK358 Programming 7 05-21-2010 08:27 PM
Preferred coding style? MrCode Programming 26 03-27-2010 02:34 PM
dockapps - changing the color / border epoo Linux - Software 0 01-11-2007 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration