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 4001566
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:55:15+00:00 2026-05-20T07:55:15+00:00

As far as I know this isn’t possible. I would like to draw an

  • 0

As far as I know this isn’t possible.

I would like to draw an outline around text that is flowing around a floated picture on a web page. Any CSS or Javascript tricks that could help with this would be appreciated.

Horrible Mockup: https://i.stack.imgur.com/Wf7BW.png

.

Edit:

This link to a demo for the Aloha Editor will give you an idea of the purpose of the outline: http://www.aloha-editor.org/demos/wordpress-demo/

Why?

In a CMS I’m working on, users can edit information in contentEditable divs on the front end of the website. In the situation above having an outline around the entire div would create confusion for the user as they cannot edit that black block.

Currently I have been adding a class to create an outline around content that can be edited. This worked well at first, but as soon as I got even a little creative with the formatting (e.g. no margin on the bottom of a div, content wrapped in a div with an outline) things started getting hacky and ugly. If there were some way to just wrap the text of div with an nicely spaced outline and I could apply that consistently on the site it would make things so much easier. Plus I’m at an impasse with the content structure that I outlined above.

I’m also open to other ideas besides an outline to convey to the users what text can be edited on the page. I’m experimenting with setting the background color on inner <p> elements in the contentEditables, but it doesn’t seem as nice as having the outlines.

  • 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-20T07:55:15+00:00Added an answer on May 20, 2026 at 7:55 am

    Well… everything can be done, with Javascript!
    In my case I have a kind of crazy solution, using jQuery. It works for your mockup and with a bit of tweaking it can work in different cases, just adapt it.

    The idea is to use jQuery to insert the borders around the image and hide unwanted borders. width, height and position is calculated dynamically based on image size.

    Enjoy: http://jsfiddle.net/E64w3/

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

Sidebar

Related Questions

I know this probably isn't possible, but I would like to be able to
As far as I know, in gcc you can write something like: #define DBGPRINT(fmt...)
As far as i know it is not possible to do the following in
The problem I'm running into is that as far as I know the delete
I know this isn't RESTful, but for now, I'm trying to set up an
I know this isn't the right place to ask about this specific vague problem,
As far as I know, foreign keys (FK) are used to aid the programmer
As far as I know, Flash has to pass info off to another external
As far as I know (not much I'll admit), the currently popular programming paradigms
As far as I know, there's no way to use {% include %} within

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.