Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7610555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:26:44+00:00 2026-05-31T01:26:44+00:00

I need some text to appear below embedded media (in this case a video),

  • 0

I need some text to appear below embedded media (in this case a video), and I would like the text to right-align to the video.

I’m not sure how to do this, since the layout needs to be fluid. Some videos will be wider than others.

Currently the text is right-aligning to the wrapping div.

Here’s a fiddle with what I have so far http://jsfiddle.net/thwackukulele/2N6a9/

I would like the text “Watch more videos on our YouTube Channel” to align to the video’s right edge.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:26:45+00:00Added an answer on May 31, 2026 at 1:26 am

    Videos can be varying width but they are never wider than your 960px set on the content-unit?

    If content-unit is centering everything, set framewrap to inline-block. This will make it shrink-wrap to its contents (here, the video), and if content-unit has text-align: center set on it, then the inline-block framewrap will be centered (at whatever width it turns out to be). Now, because its width is contrained to the widest content (the iframe here, an inline element), the h4 can be set to text-align right and the text should be restricted to the right side of framewrap, since the block h4 will still expand to 100% of whatever framewrap is.

    Ah, you have a lot of positioning and margins in there that I can’t see what they are doing, so I don’t expect this code will really fix your problem but… looking at JSFiddle is like viewing through a screen magnifier. Fun stuff http://jsfiddle.net/2N6a9/2/ I made content-unit blue and framewrap red so you could see how the caption gets wrapped. You could add a bit of right padding on the h4 if you want to nudge the text a bit more to the left.

    Oh I didn’t add code for IE6,7 etc. If you are supporting them, remember to set framewrap to display: inline after the inline-block declaration.

    Edit 2: I didn’t move the facebook stuff back left

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to post some text to a remote server over HTTP, this server
I need an on hover semi-transparent div which causes some text to appear over
I have used fieldset tag in HTML page, whereby i need some text to
I need to append some text to an input field...
I need to change some text values inside an after effect project file that
I need to replace some text in a JNLP file using a DOS batch
I need to parse some text in a UITextField and turn it into a
i need to add some text DIV's on each slide of a Nivoslider. I
I need to output some text as bash script, but in a script. I
I'm using itextsharp to generate the PDFs, but I need to change some text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.