Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-06-2011, 05:16 AM   PM User | #1
Tipmen999
New to the CF scene

 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Tipmen999 is an unknown quantity at this point
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.
Tipmen999 is offline   Reply With Quote
Old 05-06-2011, 07:43 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
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.
SB65 is online now   Reply With Quote
Old 05-06-2011, 08:48 AM   PM User | #3
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,551
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
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
coothead is offline   Reply With Quote
Old 05-07-2011, 12:26 AM   PM User | #4
Tipmen999
New to the CF scene

 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Tipmen999 is an unknown quantity at this point
@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?
Tipmen999 is offline   Reply With Quote
Old 05-07-2011, 01:26 AM   PM User | #5
Wojjie
Regular Coder

 
Join Date: Apr 2011
Posts: 286
Thanks: 2
Thanked 39 Times in 39 Posts
Wojjie is on a distinguished road
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?
Wojjie is offline   Reply With Quote
Old 05-07-2011, 06:27 PM   PM User | #6
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Quote:
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...
SB65 is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:57 PM.


Advertisement
Log in to turn off these ads.