• How do I make a max width thingy in Dreamweaver CS4?
    19 replies, posted
Hi Facepunch. I'm currently teaching myself to make a basic website, but I've been stuck with this problem for sime time now. I made an iFrame thats 668 pixels wide, and now I'm making a new blank html that I want to show up in the iFrame, but I don't want scrollbars in the frame, so I would like to know how to make some sort of border to make sure that text/images can't be wider than the 668 pixels? I've googled it and nothing really came up. Can anyone tell me?
Honestly, I wouldn't even bother with iframes, especially seeing your new?
iframe seems pretty simple, and it's about the only way I know how to make a site. [editline]10:02AM[/editline] That doesn't look like it was made with MS Paint or MS Word
Tell me, what are you exactly trying to accomplish using an iframe?
I uploaded what it's like so far: [url]www.spphoto.dk[/url] I guess it's not as important as I thought... But I'm using an iFrame for the text below the bar, and I would just like to know if there's some sort of code that automatically makes a new line if the text hits the 668 pixels in width.
Why do you need iframe for something like that?
Because, as I said earlier, it's pretty much the only way I know how to make it. I just started a week ago using Dreamweaver. And it's not like it's very complicated to use, so I'm fine with it. But I'm open for ideas if you explain to me how to do it.
Learn HTML and never use iframes. If you think iframes are the only way to make websites, does facepunch use iframes? Does google use iframes?
Stop being a fucking wiseass, I'm not saying it's the only way, I'm saying it's the only way I know how to do it. But thanks for the great help. "Learn HTML" will help me alot in the future.
[QUOTE=Ferosso;20340271]Stop being a fucking wiseass, I'm not saying it's the only way, I'm saying it's the only way I know how to do it. But thanks for the great help. "Learn HTML" will help me alot in the future.[/QUOTE] I would suggest you to take a look on [url]http://www.w3schools.com/[/url] for tutorials to HTML. Else i could suggest [url]www.pixel2life.com[/url] for tutorials to Dreamweaver. Both sites are really nice.
Thanks, I'll have a look.
If you're using Firefox, I highly recommend using Firebug: [url]https://addons.mozilla.org/en-US/firefox/addon/1843[/url] It's been incredibly helpful for me--whenever I see something cool online, I can use firebug to see exactly how it was done. I think it's way more helpful to see actual implementation instead of basic tutorials, but that might just be me. The best of luck to you.
Oh wow that's neat. Thanks, this might be very useful!
Jeez guys stfu if you've got nothing better to say than "LOL IFRAMES!1 IDIOT." And you could pick up on php includes (just google it, very common). but that's a bit farther along than you'd need. Honestly, I wouldn't worry about not using iframes. just toy around and have fun making things. Sooner or later you're going to advance yourself past that and you'll laugh when you look back on it. Just a helpful suggestion, visit some of your favorite simple websites and look at the source code. Google would be pretty easy.
[QUOTE=Sumtoxx;20358502]Jeez guys stfu if you've got nothing better to say than "LOL IFRAMES!1 IDIOT." And you could pick up on php includes (just google it, very common). but that's a bit farther along than you'd need. Honestly, I wouldn't worry about not using iframes. just toy around and have fun making things. Sooner or later you're going to advance yourself past that and you'll laugh when you look back on it. Just a helpful suggestion, visit some of your favorite simple websites and look at the source code. Google would be pretty easy.[/QUOTE] LOL IFRAMES really iframes are a shit solution to most problems.
Try not to use table based designs. Look into CSS.
Best advice I can give you is to learn HTML and CSS at the same time. It will make your life a lot easier in the long run if you understand how to use CSS.
[QUOTE=Ferosso;20340271]Stop being a fucking wiseass, I'm not saying it's the only way, I'm saying it's the only way I know how to do it. But thanks for the great help. "Learn HTML" will help me alot in the future.[/QUOTE] The reason they're saying it, is because iframes are the fucking DEVIL. If you base your design around it, you're in for a whole world of hurt later down the line.
Couple tips: As stated above, try to steer away from frames. More importantly: [url]http://www.tutorialized.com/[/url] has a section for each language, specifics on how to do X. In addition: [url]http://www.browsershots.org/[/url], allows you to see what your site looks like on other web browsers, just by submitting a screenshot request (can take anywhere from 30 seconds to 30 minutes)
Well since your just starting off, your doing much better then some of my friends that are just starting off. Eventually you will want to look into server side programming in your prefered language (asp.net, java server pages, ruby on rails, php, django, etc.) which you can look into once you feel comfertable with html and css. If you are going to use tables make sure you only use it for data that is meant to be in tables like pricelists, which can also be done entirely in html and css too. For your original question you can use the following and adjust the settings as needed: [code] <iframe frameborder="0" scrolling="no" width="400" height="400" src="/"></iframe> [/code] but as mentioned before, try to move away from using iframes, as one large problem with using them is your users will have a hard time bookmarking certain pages on your website and the viewing of content in iframes might be blocked.
Sorry, you need to Log In to post a reply to this thread.