Closed Thread Icon

Topic awaiting preservation: html problems Pages that link to <a href="https://ozoneasylum.com/backlink?for=7942" title="Pages that link to Topic awaiting preservation: html problems" rel="nofollow" >Topic awaiting preservation: html problems\

 
Author Thread
axe
Obsessive-Compulsive (I) Inmate

From:
Insane since: Nov 2001

posted posted 11-24-2001 20:56

Hi

I'm currently doing a page but I've come across two problems.

Firstly, I need to get a picture right next to the left side of the browser. If you just insert a picture, there are always about 10 pixels between it and the side of the browser. I can't make the picture a background because it is supposed to be a swap-image.

The next question is how I can make a link open in a new window which I can specify the size of. For example, open index2.htm in a window that's 400*300 pixels.

Would be very grateful if someone could answer these questions
Axel

warjournal
Maniac (V) Mad Scientist

From:
Insane since: Aug 2000

posted posted 11-24-2001 21:24

Use CSS to set the margin

body { margin: 0px;}

That will give you a zero margin all the way around, so you might have to fiddle with some padding or something with more CSS.

Actually, I think you can make the background image swappable with CSS/JS, but I'm not entirely sure. Check http://www.glish.com/css/blogger/ and http://www.glish.com/css/blogger/blogger.html for possible clues.


Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-24-2001 21:44

axe: Welcome. warjournal's solution is the one I'd advise you to go with but it doesn't work in NS4.x and I wouldn't recommend trying to get it to work in NS4.x (as thet tags are being depreciated). Yes you can swap background images in DIVs but not the body you can use this.className or some other simple JavaScript solution.

For pop-up windows see Pugzly's tutorial:
www.gurusnetwork.com/tutorials/html/windowpop_generator.html

Use sparingly!!

Emps


You're my wife now Dave

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 11-25-2001 07:45

Besides CSS, you can also use the following to get rid of page margins:

<BODY LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">

BTW This topic is more appropriate in DHTML/JavaScript board, and I'm going to move it there...


« BackwardsOnwards »

Show Forum Drop Down Menu