Click to See Complete Forum and Search --> : iframes
davestewart
11-27-2004, 05:24 PM
Hi,
I am new to web design and have been playing with iframes. I have been using dreamweaver to generate the bulk of the code and editing manually for speed. I have managed to get an iframe inserted but I can't seem to poistion it. It only appears when I preview the page or open the htm file. It works okay but what I want to know is;-
How do I specify the location (do I have to use a layout table)?
also can I have it dynamically centered in the middle (absmiddle)?
If its a stupid question please be gentle
:p
PeOfEo
11-27-2004, 10:39 PM
1st off: Write your own code. Do not use a wysiwyg editer. Especially if you are new and do not know what you are doing be cause it will only cramp your ability to learn. Code by hand and learn the code. Learn how to use html with css for positioning. www.w3schools.com is a good place to go to learn. To see css in action and its power go to www.csszengarden.com . To see how to layout a site with css go to www.bluerobot.com .
Stop using iframes. Frames are inherently bad because of the fact that they are inaccessible. If a text based browser gets to your site, it will show [inline content] where your frame would be, I know I use linx to preview sites. This is the same thing a audio braille browser (for those with disabilities) or a search engine spider will see, nothing. Frames also make it hard for the user to book mark and make browsing a pain in the butt for the user. If you want to put the same content on every page look into something called server side includes, it is the most efficient way to do what you seek. To have the scrolling effect use this:
<div style="overflow:auto; height:50px; width:50px;"> This will have scroll bars for content bigger than 50 by 50.</div>
That style attribute is one example of css in action.
davestewart
11-28-2004, 05:18 AM
Thanks for the reply. I read a lot last night and decided to use CSS due to its versatlity and power. I am rebuilding now using only html and CSS (no java either). I like the way CSS works and I am only just getting into it. Thanks for the scrollbar code, I haven't got that far yet.
I will post site when done so I can get an idea what people think.
Thanks
dave
pawky
11-28-2004, 02:55 PM
awesome, very good to see others moving in the right direction :) CSS is so easy compared to everything else :P gl