+ Reply to Thread
Results 1 to 10 of 10

Thread: Trouble with CSS based Widget

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    1

    Trouble with CSS based Widget

    Hi Folks,

    I'm building a widget that is intended to be integrated in third party websites. Now i'm in trouble.
    When the widget runs in isolation everything looks fine. But when i put it into other people sites, i have various results ranging from the widget's functionality being disturbed up to the host site being disrupted.

    My believe is that this is due to my CSS clashing with the host site's CSS. To validate my claim, i embedded the widget within a iframe before inserting it into the host site: both the host site and the widget behaved as expected.

    My question: is there a way to complely prevent the host site's CSS to have any effect on my widget? That is without using iframes.

    I don't want to use iframe because my widgets has some dialogs (using div) that are bigger than the normal widget. When iframe is used, only parts of these dialogs are visible.

    Please help! Any idea is welcome.

    Klaus L'Imbecile.


  2. #2
    Mr. Tambourine Man LeadMagnet's Avatar
    Join Date
    Jun 2007
    Location
    Ireland
    Posts
    2,863
    First thing that comes to mind is that your positioning is clashing with the host. Probably using absolute positioning at least in some places yeah?
    Show us an example and it would help.
    Subtlety is my middle name... and first and last in case you didn't get the point.
    http://www.eoingriffin.com

  3. #3
    Idiosyncratic Member ;) likethegoddess's Avatar
    Join Date
    May 2008
    Location
    San Francisco, Calif.
    Posts
    802
    You might try specing all your styles with classes. So, instead of p { * }, use .myclass p { * }, etc., etc.
    likethegoddess design for the arts
    Portfolio | Twitter | FriendFeed

  4. #4
    Mr. Tambourine Man LeadMagnet's Avatar
    Join Date
    Jun 2007
    Location
    Ireland
    Posts
    2,863
    I think if someone is capable of making a widget, they wouldn't make such an obvious mistake as to put a style on an entire element.
    Subtlety is my middle name... and first and last in case you didn't get the point.
    http://www.eoingriffin.com

  5. #5
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,753

    First thing that comes to mind is that your positioning is clashing with the host. Probably using absolute positioning at least in some places yeah?
    If it's placed in a containing element then absolute positioning wouldn't affect the page. It could possibly be due to the dimensions of the widget i.e., if you have a div that is 300px X 300px and the widget is 350px X 400px then Internet Explorer would expand the div.

  6. #6
    Mr. Tambourine Man LeadMagnet's Avatar
    Join Date
    Jun 2007
    Location
    Ireland
    Posts
    2,863
    Not necessarily. If something that's absolutely positioned is not being properly contained within the widget, it can appear in the wrong place and "have various results ranging from the widget's functionality being disturbed up to the host site being disrupted".
    The exact error was not specified.
    Subtlety is my middle name... and first and last in case you didn't get the point.
    http://www.eoingriffin.com

  7. #7
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,753
    Not necessarily. If something that's absolutely positioned is not being properly contained within the widget, it can appear in the wrong place
    We're both arguing the same thing here bud:

    If it's placed in a containing element then absolute positioning wouldn't affect the page

  8. #8
    Mr. Tambourine Man LeadMagnet's Avatar
    Join Date
    Jun 2007
    Location
    Ireland
    Posts
    2,863
    The first line of your post read that you were disagreeing with what i said.
    Subtlety is my middle name... and first and last in case you didn't get the point.
    http://www.eoingriffin.com

  9. #9
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,753
    I disagreed with your first post on the condition that his widget was placed inside a containing div, then you disagreed with me saying that it would affect the positioning if it was not properly contained ergo we both argued the same point in the end.

  10. #10
    Mr. Tambourine Man LeadMagnet's Avatar
    Join Date
    Jun 2007
    Location
    Ireland
    Posts
    2,863
    My head hurts...

    @klauss - Just show us the damn widget.
    Subtlety is my middle name... and first and last in case you didn't get the point.
    http://www.eoingriffin.com

+ Reply to Thread

Similar Threads

  1. Add This! Social Bookmark Widget
    By tommylogic in forum General Web Design Forum
    Replies: 5
    Last Post: 12-12-2008, 10:55 AM
  2. Feed Widget
    By Toon in forum General Web Design Forum
    Replies: 0
    Last Post: 18-09-2008, 07:36 PM
  3. Header Trouble
    By lightbulbsun in forum Graphic Design and Web Design Help
    Replies: 10
    Last Post: 21-08-2008, 07:51 PM
  4. Newbie asking for trouble...
    By loveunltd in forum Graphic Design & Web Design Critique
    Replies: 16
    Last Post: 28-05-2008, 04:23 PM
  5. My itunes widget
    By Toon in forum Apple Mac Forum
    Replies: 1
    Last Post: 12-09-2007, 02:44 AM

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


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site