Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 blank.gif
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jan van Londen
Super User

Netherlands
208 Posts

Posted - 31 Mar 2007 :  10:22:59  Show Profile  Visit Jan van Londen's Homepage  Reply with Quote
I genereated some code as an example with DHE 3.3 for a colleague. It was one page withe two buttons and layers. Button1 showing layer1 and hiding layer2 and the other way around. And, as always, blank.gif was generated.
An other colleague, who knows a lot about HTML and who's opinion I value, said the following (my translation):

"It used to be so that a gif was used for alignment puposes, but since HTML4 it can be done with a div. In this example the gif is a 1 by 1 picture which isn't even stretched so it has practically no effect. So it is redundant and should not be used."

So, I cannot judge this opionion, but if he is right, shouldn't it be like he says? I'm curious what you all think, but specially about what Davide thinks.

Bye, Londen.


Bye,
Londen.

jtarin
Super User

Russia
444 Posts

Posted - 02 Apr 2007 :  07:12:30  Show Profile  Visit jtarin's Homepage  Reply with Quote
Quote:"It used to be so that a gif was used for alignment purposes, but since HTML4 it can be done with a div"

But the advantage I would think is that "DHE" does it automatically. What would the <div> example be?

Porky
www.pacificwavetour.com
Go to Top of Page

Jan van Londen
Super User

Netherlands
208 Posts

Posted - 02 Apr 2007 :  14:04:29  Show Profile  Visit Jan van Londen's Homepage  Reply with Quote
(I cannot edit my posting, so I have tot reply, sorry.)

I removed the blank.gif in the html and the file. There appeared to be no differences. So, is my colleague right or . . ?

Bye, Londen.

(By the way, this one is edited (april 3) Strange!)

Bye,
Londen.

Edited by - Jan van Londen on 03 Apr 2007 17:21:09
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 03 Apr 2007 :  09:48:28  Show Profile  Visit s.dav's Homepage  Reply with Quote
Try your file (without the gif) in FF ;-)

The gif is used in many ways:
1- It permits you to use the PNG32 support (when you use it)
2- It is used as spacer for container with no contained objects; infact it is needed in order to permit the container to have a background or the background will not be shown
3- It is used for creating pages in relative mode (it's very important) ;-)
4- It is used in rectangles (as spacer) in order to permit them to have a background

Finally remember that D.H.E. has been thought to be compatible with all browsers ;-)
When I created it pages worked also with Netscape 4!


Regards, Davide
Go to Top of Page

Jan van Londen
Super User

Netherlands
208 Posts

Posted - 03 Apr 2007 :  17:24:54  Show Profile  Visit Jan van Londen's Homepage  Reply with Quote
OK, I will show this answer to my colleague.

Bye, Londen

Bye,
Londen.
Go to Top of Page

Jan van Londen
Super User

Netherlands
208 Posts

Posted - 07 Apr 2007 :  10:18:43  Show Profile  Visit Jan van Londen's Homepage  Reply with Quote
Hello Davide,

I showed your answers to the colleague again and he gave these answers. I don't think he knows it better, but maybe it helps to improve DHE and to improve the generated code. So do with these remarks what you want. Your answers are Italic, his are bold.

1 - It permits you to use the PNG32 support (when you use it)
He does not understand what a gif has to do with PNG32.

2 - It is used as spacer for container with no contained objects; infact it is needed in order to permit the container to have a background or the background will not be shown
OK for older browsers, it is common to use a space ( non-breakable space).

3 - It is used for creating pages in relative mode (it's very important) ;-)
I don't understand. Something from DHE? (In 13 year I never made a page in relative mode.)

4 - It is used in rectangles (as spacer) in order to permit them to have a background.
According to me it is identical to point 2. If you don't put a GIF or space in a container, the element is not shown in older browsers (versie 4 Netscape en IE en lower versions).

So, Davide, once again I fulfilled my job as go-between. I hope it doesn't irritate you, but I promote DHE all the time and then you get discussions like this.

Bye, Londen.


Bye,
Londen.

Edited by - Jan van Londen on 07 Apr 2007 10:21:21
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 09 Apr 2007 :  18:55:59  Show Profile  Visit s.dav's Homepage  Reply with Quote
Hello Jan

>1 - It permits you to use the PNG32 support (when you use it)
>He does not understand what a gif has to do with PNG32.

Nothing, the PNG32 support works only with PNG images ;-)

>2 - It is used as spacer for container with no contained objects; infact it is needed in order
> to permit the container to have a background or the background will not be shown
>OK for older browsers, it is common to use a space ( non-breakable space).

Yes, but "non-breakable space" has a variable height, some points (8 for example) a 1x1 gif can be sized as I want ;-) so a   is not good if I have to make a line 100x1 ;-)

Posted - 07 Apr 2007 : 10:18:43
--------------------------------------------------------------------------------

Hello Davide,

I showed your answers to the colleague again and he gave these answers. I don't think he knows it better, but maybe it helps to improve DHE and to improve the generated code. So do with these remarks what you want. Your answers are Italic, his are bold.

1 - It permits you to use the PNG32 support (when you use it)
He does not understand what a gif has to do with PNG32.

2 - It is used as spacer for container with no contained objects; infact it is needed in order to permit the container to have a background or the background will not be shown
OK for older browsers, it is common to use a space ( non-breakable space).

>3 - It is used for creating pages in relative mode (it's very important) ;-)
>I don't understand. Something from DHE? (In 13 year I never made a page in relative mode.)

Yes, I speak about "relative mode" when I D.H.E. uses tables instead of absolute positioned DIVs for positioning objects; in relative mode D.H.E. doesn't use DIVs but TABLES.

>4 -
as before...


>So, Davide, once again I fulfilled my job as go-between. I hope it doesn't irritate you, but I
> promote DHE all the time and then you get discussions like this

No problems but the gif now is needed ;-)
I think it's better to have a gif and a compatibility with more browsers ;-)

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000