Solved

stretchy quote container - RESUBMITTED QUESTION

Posted on 2013-06-11
9
423 Views
Last Modified: 2013-06-12
Original question posted is below in quotes.  MIcky159 issued a solution which was accepted and now I am having problems with his solution.  I will post his solution after this poste

My Question

"How do I set up a quote background image so that it stretches with the size of the quote?  I thought of putting all pieces (top, middle and bottom) into a containing div but is seems like that isn't a very good solution.  I need the point to be to the right of the name.

Here is screen shot of how it would look in website
http://screencast.com/t/lGkaWkPyyk

I have attached the top and bottom edges along with the final point."
quote-point.png
quote-top.png
quote-bottom.png
0
Comment
Question by:nsitedesigns
  • 5
  • 3
9 Comments
 

Author Comment

by:nsitedesigns
Comment Utility
Mickey159's awarded answer:


This is my updated working demo:

http://jsbin.com/utudaj/4/

If you want to use it on your server, please change the image path to your local path.
If you want to remove the green border(I don't know whether you want that so I included), search and delete the following line:
0
 

Author Comment

by:nsitedesigns
Comment Utility
This is the problem:

I noticed that I am getting this funky "Edit in JS Bin" icon appear in the upper right of the site (outside to boundaries of the website) in the background area.  I believe I need to make some adjustment to the code you provided.  Can you please let me know what I need to do.  I attached a screen shot so you can see what I am talking about.

Link
http://nsitedesigns.com/nsitedesigns/darkhorse/index.html

Coboldinasauer pointed out that the box is coming from this script down near the bottom of the page:
<script src="http://static.jsbin.com/js/render/edit.js"></script>

He also pointed out the line of code in the scrip that generates the elemtent
el.innerHTML = '<div><a class="jsbin-edit" href="' + href + 'edit"><b>Edit in JS Bin</b> <img src="' + options.root + '/images/favicon.png" width="16" height="16"></a></div>';

Problem
When I open any dw file and try to edit the edit.js file it says that it is a remote file and cannot be edited.  When I look on the server, there is no edit.js file, there IS a file called edit4048fd.....js.  When I open that file, it looks like the edit.js file.  So I opened it, removed the line of code, renamed it edit.js and uploaded it.  I deleted the cache, reset the browser and I still see the darn JS Bin in the right top corner.  Any other ideas?
Screen-shot-2013-06-10-at-8.56.3.png
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Don't know about all those suggestions but I would do it like this.
http://jsfiddle.net/sdNCg/1/
0
 

Author Comment

by:nsitedesigns
Comment Utility
GaryC123

1.  How to you reference the bottom and top rounded edges?  Those images are not refernenced in your code.

2. I thought you are not supposed to put a margin on a float in the same direction as the float.

3.  don't i need to define the outer div or can I just call it a div?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
1. Not using images (will not work in <IE8 but degrades ok) except for your bottom speech arrow. But you could even do this in css if you can rely on your users having the latest browser.
But you can use http://css3pie.com which will apply the rounded corners in all versions of IE
2. Put any margin you like
3. Didn't define any container as I don't know how you fit it into your code, just add your own class name as you need.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
Check out using QTip http://craigsworks.com/projects/qtip/  this is something I use in some of my projects and really like it.
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Don't think he wants an hover event padas, this is an on page element.
0
 

Author Comment

by:nsitedesigns
Comment Utility
Padas,

Very cool but I don't want someone to have to click to view testimonial.  It should be visible at all times on the site.
0
 

Author Closing Comment

by:nsitedesigns
Comment Utility
worked perfectly in lower ie versions.  easy to implement!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now