Basic HTML question

Associate
Joined
28 Feb 2006
Posts
2,497
Location
Wimbledon
I am currently doing a module on an introduction to web design in uni and we have to code a website using HTML all in notepad.

Is there anyway to scale an image to the page no matter what size screen/resolution is set?

I have the fish with line image in the outer div, which is the grey box with this code.

Code:
<body>
 <div id="outer">
 <h1>Course Fishing</h1>
<img src="linefish.jpg" alt="Fish and Line for the background" align="left" hspace="180">

This results in what I want

working1.jpg


However if I reduce the size of the browser the image does not appear in the correct position.

notworking1.jpg


I am controlling the style with a CSS file. So is there a way to make the fish iimage to display between the two yellow boxes no matter what the screen size is?

Thanks
 
Thanks for that spot! Could have been embarrassing lol! Guess I will have to get rid of the image then.

Would this mean that using button images as links wouldn't work also? They would be too big on smaller resolutions right?
 
Thats not very good! I'm guessing that you can change this using dreamweaver? I shall look forward to that part after the easter break :)
 
I've used both, Notepad++ is more fully featured with things like tabs, whereas Notepad2 is just Notepad with tweaks. Personal preference, if you're used to Notepad++ then there's no reason to change.
 
Back
Top Bottom