Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-21-2005, 07:53 AM   #1 (permalink)
riyada
Registered User
 
Join Date: Aug 2005
Posts: 5
riyada is on a distinguished road
Image thumbs layout

Hi..
I am trying to have this :
<div id="links2" ><img src="1.jpg" /><img src="2.jpg" /><img src="3.jpg" /><img src="4.jpg" /></div>

with this :
#links2 img {
display:block;
width:60px;
height:60px;
border:solid 1px #000;
margin:0px 4px 4px 4px;
}
and this:
#links2 {
position:absolute;
top:20px;
left:20px;
width:70px;
padding-top:4px;
border:none #000;
}


to display horizontally
Help anyone?
Thnx
riyada is offline   Reply With Quote
Old 08-21-2005, 08:58 AM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
try telling them to float left, or putting them in a single table row, or putting them in a list and setting the disply to inline.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 08-22-2005, 07:36 AM   #3 (permalink)
riyada
Registered User
 
Join Date: Aug 2005
Posts: 5
riyada is on a distinguished road
Thanks ! inline fixed it..
How about this:
I am trying to decipher this code:
obj.top=(db.offsetHeight-h)/2+"px";
obj.left=(db.offsetWidth-w)/2+"px";
I want to work out top and left values come up when I input the different parameters.
Can you?
Thanks again
riyada is offline   Reply With Quote
Old 08-23-2005, 09:43 AM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
well you've got some code that accesses a variable db which holds a height and width offset, and variables h and w whihc seem to benumeric values. The whole result is divided by 2 and px is tacked on before it's assigned to the top and left position attributes of obj. But as for telling you what they'll be I have no idea where your variables are coming from with this out of context snippet.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stationary Image joehouse HTML, XML, Javascript, AJAX 4 08-05-2005 07:03 PM
Database layout - opinions? Rafkin Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 4 12-29-2004 07:36 AM
Small modification needed on image flipping JavaScript Epsilon HTML, XML, Javascript, AJAX 0 08-31-2004 05:06 PM
I am a newb, how do you set multiple parts of an image as a link? I sniper baby HTML, XML, Javascript, AJAX 5 02-10-2003 06:40 PM


All times are GMT -8. The time now is 06:41 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting