Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Bug - Going Crazy.........

    I've been a lurker for a while. I hate that it's come to this, i've developed an iphone application (an E-learning application along with a desktop counterpart) so I feel like a noob for posting this.

    I can't for the life of me get this iframe to stretch across this website i'm making for my application. (Yes, it is a template) Obviously I picked the right field because I suck at web design. I've been here since 8 a.m and it's almost midnight. So I'm literally on edge over this bug.


    It's hosted here:
    www.infinite-views.com/NSite/

    and the whole website images,html, and css are zipped here.

    www.infinite-views.com/NSite.zip

    and the best part is whoever can fix this bug gets all the money in my paypal account! here: www.infinite-views.com/8bucks.jpg

    this forum really is a great resource.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Not an iframe expert, but at the moment you're pointing your iframe at an image. Firebug shows the iframe has width 100%, it's just the image that isn't stretching.

    Not sure if this is just a placeholder, but if you put your image in an html page, set the width of the image to 100% in that html, then point your iframe to the html page, then it looks OK.

  • #3
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,680
    Thanks
    0
    Thanked 230 Times in 225 Posts
    Hi there Tipmen999,

    and a warm welcome to these forums.

    What is the reason for the iframe.

    Why can you not just use...
    Code:
    
    <img src="img/mainSlide.jpg" height="100%" width="100%" alt="">
    
    coothead

  • #4
    New to the CF scene
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    @coohead

    I need to use an iframe because I plan on updating the banner alot, and that banner is going to be designed in Photoshop, and exported as HTML, and it just makes things easier.

    @SB65
    Ah, your right, I've been messing with it so much that I pointed it too an image. Even still when it's pointed to an iframe.html page it doesn't work. I know the problem lies within the divs.


    Nobody wants 8 bugs for a bug fix?

  • #5
    Regular Coder
    Join Date
    Apr 2011
    Posts
    286
    Thanks
    2
    Thanked 39 Times in 39 Posts
    It looks like it stretches the width of the page, so I'm not sure what the problem here is?

    Have you tried setting the width/height through CSS?

  • #6
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    that banner is going to be designed in Photoshop, and exported as HTML
    Easier to export it as an image, surely?

    I think your iframe is OK - if I replace your image with a web page it's fine:have a look...


  •  

    Posting Permissions

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