Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alignment of pages within frames

Status
Not open for further replies.

rexoids

Technical User
Nov 4, 2001
7
0
0
AU
Owdy,
I have my top nav (straight forward table with some swap image rollovers) in the top frame, and my left nav (imported from fireworks, with some java pop-up menus) in the bottom frame... For some reason my left nav always hugs the left hand side when I preview, no matter what value I put in the H space...? My top nav will always have a gap between itself and the left hand side, even with a value of 0 in the H space...? Li'l help?

"I have one thing to say to you... Keh?"

 
i'm not sure i completely understand your problem, but...

the hspace attribute is normally only associated with the <img> tag. in order to get rid of the gap to the left of your topnav you should put the following in your <body> tag...

leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;

...and how do you want to align your leftnav? presumably fireworks gives you it in the form of a table, so you should simply put align=&quot;[wherever]&quot; in the <table> tag.

let me know if this doesn't make sense,

ss
 
Thanks for your response... however I don't think you completely understood my problem (this happens a lot)

I understood that the hspace attribute (in the properties palette) is to be used to position a table within a page/frame. I also thought it's best to put images in tables, and so can't imagine how you'd use hspace for them..?
Anyway, to simplify, I have two tables - one in the top frame and one in the bottom frame. They both have the same attributes - align=left, hspace=0 etc Yet when I preview in both, NS6 & IE5, they wont line up.
In both browsers the top nav always has a gap, in NS a value of, say 10, is not equal, and in IE, I can't get any gap for the bottom nav...???
I've had this problem before, though with a bit of fiddling I would always get them to line up eventually. I've had dreams of destroying html forever, and we'd all live in a peaceful world of simple, beautiful Flash!
Of course because it's all so temperamental, it's probably not possible for you to help... but would greatly appreciate any suggestions :)
Rexoids (formerly known as Niccurros - actionscripts.org)

 
hspace (or vspace) is not really used for positioning an element on the page, hspace is used to apply padding around an object eg. if you use hspace=&quot;10&quot; you will get an area of padding, 10 pixels wide, to the left and right of your element - whether it is an image or a table or whatever.

it seems to me that you don't need to put hspace into your tables at all (especially seeing as you've got it set to 0 anyway!).

i can't think what the problem is. where is the gap appearing? is it between the frames? is it on the left?

can you be more specific, please?

ss
 
is there a way to set up more than one server for FTP in dreamweaver. I have 2 webservers running on 2 separate T1 lines, they both need to be updated together, when I &quot;put&quot; a file.

any ideas?

thanks,
 
I tried the margins again and it's worked, so there's now no gap down the left hand side of my top nav. As I can't get any gap down the left of my bottom frames nav (only in IE5 though), they line up (many thanks), but it's strange as no matter what value I give to the margins, it wont budge?
Not to worry, as it looks fine with no gap...
Thanks again
Rexoids
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top