Results 1 to 5 of 5

Thread: float an element with text wrapping - Solved

  1. #1
    User
    Join Date
    02-01-10.
    Posts
    111

    Default float an element with text wrapping - Solved

    I have created an article with two elements. I am floating the first element right with CSS. I would like the text of the second element to wrap around the first element. I have not been able to get wrapping to work :-(. Here is the page that I have been working with http://dsdev.ds.umn.edu/test-service-3.html . Any idea what is missing?

    Thank you,
    Tonu

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: float an element with text wrapping

    Contao does this. In the contao.css stylesheet .block overflow is set to hidden, I'm not sure why that is done for blocks.
    Override the setting and it works:
    Code:
    .block{overflow:visible;}

  3. #3
    User
    Join Date
    02-01-10.
    Posts
    111

    Default Re: float an element with text wrapping

    Ruud, thanks this was it. I attached a div named wrap_text for the text element that is supposed to wrap and added this to my css:

    #wrap_text {overflow:visible;}

    This works, but I am not entirely sure if this is the best way to do this.

  4. #4
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: float an element with text wrapping

    Why not use the code I said? I don't think it will give you any trouble, or does it?

  5. #5
    User
    Join Date
    02-01-10.
    Posts
    111

    Default Re: float an element with text wrapping

    I was concerned about changing contao.css in fear of something not working right if I did. I didn't think this file was something we were supposed to modify. We run six websites on a single instance of contao and they all use the same contao.css file. It would be difficult for me to investigate if everything is working correctly if I made global change like this. May-be it is harmless, but I was just being cautious.

    Thanks for your help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •