Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogBlog Styling - adding picutures that floatBlog Styling - adding picutures that float
Previous
 
Next
New Post
9/2/2014 9:58 AM
 

Hi,

I want to use pictures in my blog posts and I want them to float.  I'm having trouble with the styling because the effect of the float bleeds out of the post.

This post https://www.dynamisys.co.uk/ForumsBlo... floats the picture to the left.  My text appears beside it (that's good), but the social media icons have moved up as well.  I wanted the picture contained within the post.

This post https://www.dynamisys.co.uk/ForumsBlo... shows a similar problem.

Am I missing something obvious?


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
9/3/2014 9:09 AM
 

A couple of issues:

1. You are using CSS selector to float any image that appears in your blog post.  div.blog_body span img {} This approach seems like you will end up floating images that you don't intend to float.

2. You need to using a clearing element or use a clear fix class like dnnClear on the containing element.  In this case when I look at the HTML I see a < span > < img /> </ span >< p > So your choice is to include the dnnClear class on the span or on the p element.  This will ensure that any subsequent content is not affected by the float.


Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogBlog Styling - adding picutures that floatBlog Styling - adding picutures that float


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out