Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Positioning relative img and div into a TD

Reply
Thread Tools

Positioning relative img and div into a TD

 
 
joker197cinque
Guest
Posts: n/a
 
      09-25-2008
I have a big TD cell in which I have to position some img and div.

These elements are from graphical layout, so they have to positioned
precise to pixel.

I have 2 ways to do it:

1) Insert a table and place elements in cells (and also nesting other
tables) stretching them with the help of spacer gif elements to move
elements and to position them well
2) assign an ID to all elements and position relatively to TD. With
the help of top, right, bottom and left CSS properties I can position
very well elements.

Honestly I can see advantages and disadvantages in each solutions ..

Can you tell me your opinion ?

Best regards.
 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      09-25-2008
joker197cinque wrote:

> I have a big TD cell in which I have to position some img and div.


Are you sure you have to do that inside a big TD cell? Can't you use
regular layout methods, such as .. anything but tables?

> These elements are from graphical layout, so they have to positioned
> precise to pixel.


It is possible that your client requested pixel precision, but it is
not because it comes from a graphical layout. The only way to show
someone an image of what they want on a page, is in a graphical way.
This does not mean every pixel has to be precisely the same as in the
example - it's impossible to do that, unless you are going to have all
the text as images as well.

> I have 2 ways to do it:
>
> 1) Insert a table and place elements in cells (and also nesting other
> tables) stretching them with the help of spacer gif elements to move
> elements and to position them well


Eew!

> 2) assign an ID to all elements and position relatively to TD. With
> the help of top, right, bottom and left CSS properties I can position
> very well elements.


positioning with position:absolute -> what happens when the text is
larger than you thought?

> Honestly I can see advantages and disadvantages in each solutions ..


I see disadvantages only...

> Can you tell me your opinion ?


Yes, do neither.
If you would show the graphic layout, someone here could possibly
advise you. Right now, nobody knows what you want it to look like.

--
Els http://locusmeus.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning a DIV relative to another laredotornado@zipmail.com Javascript 2 10-23-2007 03:52 PM
positioning div relative to window libsfan01 Javascript 4 08-29-2006 01:10 AM
how to download img from html img tag news.austin.rr.com ASP .Net 2 04-27-2005 06:25 PM
Absolute/relative positioning of div's Sentient Fluid HTML 6 09-04-2004 02:17 PM
Positioning absolute CSS in a relative DIV Chris HTML 10 03-01-2004 05:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57