GithubHelp home page GithubHelp logo

Comments (5)

scorchingoyster avatar scorchingoyster commented on June 27, 2024

I thought it would be a pretty straightforward implementation, but after trying some things out and reading a lot of online community discussions—it seems that there isn't actually a good way to implement this without drawback.

surprisingly, "floating" the image to the bottom right while allowing the text to wrap around it isn't achievable without some hacky fix through javascript, and it's also limited by that the element won't be fluid and exact number of text lines will have to known so that the CSS/JS can account for it.

in short, CSS doesn't seem to have a good way to support this layout behavior at the moment.

I suggests moving the photo and the author information to top right or left instead. if you do prefer to keep it bottom left, we may be able to use one of the workarounds, but it will mean that there will be some significant limitations that come with it.

(details here: https://stackoverflow.com/a/499883)

from owasp-layout.

mikemccamon avatar mikemccamon commented on June 27, 2024

from owasp-layout.

scorchingoyster avatar scorchingoyster commented on June 27, 2024

I actually do agree that the bottom right option looks better, it's what I often do with print layout as well. but CSS is another beast.

will do the top right option then.

from owasp-layout.

scorchingoyster avatar scorchingoyster commented on June 27, 2024

your sketch seemed like you wanted to make use of the blue border that the news list, so I just replicated the effect for this:

image

without the photo and/or the author row, the text paragraph would just display as-is.

from owasp-layout.

mikemccamon avatar mikemccamon commented on June 27, 2024

Looks great!

from owasp-layout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.