Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS - absolute position

Reply
Thread Tools

CSS - absolute position

 
 
cshih16@yahoo.com
Guest
Posts: n/a
 
      01-26-2006
sorry, new to css, this question may be odd:
wonder if absolute position TOP and LEFT can start counting from within
<table></table> section (somewhere in the middle of the page), not from
the whole page top left corner?

i try to build a photo gallery where thumb images on the top and bottom
shows the display if mouse over that thumb image. however, the display
photo can not match the measurement of the background (1st image)..
tremendous headache...

thank you!
ching

 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      01-26-2006
wrote:

> sorry, new to css, this question may be odd:
> wonder if absolute position TOP and LEFT can start counting from within
> <table></table> section (somewhere in the middle of the page), not from
> the whole page top left corner?


Yes, if you give <table> position:relative.

> i try to build a photo gallery where thumb images on the top and bottom
> shows the display if mouse over that thumb image. however, the display
> photo can not match the measurement of the background (1st image)..
> tremendous headache...


Here, have a paracetamol

> thank you!


You're welcome

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Feelgood - Down At The Doctors
 
Reply With Quote
 
 
 
 
cshih16@yahoo.com
Guest
Posts: n/a
 
      01-26-2006
thank you Els!

changed to position:relative, but still not work as expected.

hope you don't mind help see what is wrong in css?
http://www.mynovember.net/shop/trythiscss.html

thanks,
ching

 
Reply With Quote
 
saz
Guest
Posts: n/a
 
      01-26-2006
In article < .com>,
says...
> thank you Els!
>
> changed to position:relative, but still not work as expected.
>
> hope you don't mind help see what is wrong in css?
> http://www.mynovember.net/shop/trythiscss.html
>
> thanks,
> ching
>
>

You didn't ask, but I think you should reconsider this design. It is
not user friendly.
 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      01-26-2006
wrote:

> thank you Els!
>
> changed to position:relative, but still not work as expected.
>
> hope you don't mind help see what is wrong in css?
> http://www.mynovember.net/shop/trythiscss.html


First of all: please quote the relevant bits of the message you are
replying to, so we don't have to remember (or guess) what it was you
are replying to.

Second: Your HTML is full of errors (169):
http://validator.w3.org/check?uri=ht...rythiscss.html

It starts with having no <html> opening tag, and then:

> <body>


> </div id="header">


A div's closing tag with an id??

> </tr>
> <table align="center" ......


A table in between two rows?

Your CSS might not be caused by the HTML errors, but since I can't be
certain of that, it would still help me to help you if you just
validate your code, correct the errors, and then come back.
FWIW, in Opera the effect on hover over those images is far worse than
on Firefox, while I know that with valid code and good CSS, both
browsers could easily do what you want.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      01-26-2006
wrote:
> changed to position:relative, but still not work as expected.


Leaving aside the other problems with the page, which other people have
mentioned already - Els did not say to change the /image/ from position:
absolute to position: relative.

BTW - please follow the conventions of this community and provide context to
what you are responding to.

http://cfaj.freeshell.org/google/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
cshih16@yahoo.com
Guest
Posts: n/a
 
      01-26-2006
finally got my html validated. thought <table> tags could never been
validated, but it does.
could you please help check my code again why gallery not align well?
http://www.mynovember.net/shop/trythiscss.html
thanks much!

 
Reply With Quote
 
cshih16@yahoo.com
Guest
Posts: n/a
 
      01-27-2006
i got my problem solved!!

very special THANKS to Els! You are right - not css but my html table
problem
your direction of letting me validate html code really works

thank you!
ching

 
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
How does one get an absolute absolute file path? James Byrne Ruby 3 09-14-2010 06:02 PM
Problem with CSS absolute position/overflow scroll Adam Plocher HTML 4 05-26-2006 06:10 PM
Where is Form Relative Position and Absolute Position in VS.Net 2005 ? Luqman ASP .Net 1 02-07-2006 10:27 AM
CSS and javascript, find absolute position of element Knut Javascript 1 10-15-2004 02:27 AM
Absolute position of datagrid Kenneth ASP .Net 3 08-29-2003 10:29 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