HighDots Forums  

Can I do this?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Can I do this? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
KEB2
 
Posts: n/a

Default Re: Can I do this? - 07-04-2004 , 03:12 PM






I just tried it out...it worked fine. The index page says "under construction"
now...the porfolio button link is at the bottom....it worked for me...

What should I do if you are still getting the other page?


Reply With Quote
  #12  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Can I do this? - 07-04-2004 , 03:18 PM






It worked OK this time.

I still do not see a space, or a misplaced layer....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"KEB2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I just tried it out...it worked fine. The index page says "under
construction"
now...the porfolio button link is at the bottom....it worked for me...

What should I do if you are still getting the other page?




Reply With Quote
  #13  
Old   
KEB2
 
Posts: n/a

Default Re: Can I do this? - 07-04-2004 , 03:41 PM



So, on the portfolio page when you click on one of the logos, the layer doesn't
come up on the far left side? That's what it's doing to me.
It's supposed to come up in the space between the blue side bar and the
thumbnails, not overlapping the blue.

I don't know what the deal is with that space. Maybe check the index page for
it under that button, I had to unlink the portfolio page from the template to
use the extension. If you can't find it, I certainly won't! Perhaps when I'm
working on my other web page and get a place to post (with that space-ibeam
issue) it I'll re-post that question....

Let me know if the layer comes up in the right area for you. I'm using IE.


Reply With Quote
  #14  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 11:16 AM



Yes, I see the misplaced layer now.

Here's the problem. "Layers" are absolutely positioned page elements. This
means that it doesn't matter what the size of the browser viewport is, the
'layer' will always appear in the same location - in your case, 150px from
the left margin, and 100px from the top margin. And, indeed, this is what
one sees. Whether the browser window is full screen, or a mere 200 pixels
wide, that layer will be there 150px from the left margin. Yet, your
underlying table is centering in the browser viewport. This means that the
table with the page content will move away from the layer with the logo
information in any given browser viewport width.

Are you with me?

The solution would be to use CSS to control the centering rather than
letting the table do the lifting. Consider the following -

1. Change this -

<body
onLoad="MM_preloadImages('Buttons/Port_dwn.gif','Buttons/Res_dwn.gif','Butto
ns/Contact_dwn.gif')">
<table width="700" border="0" align="center" cellpadding="0"
cellspacing="0">

to this -

<body
onLoad="MM_preloadImages('Buttons/Port_dwn.gif','Buttons/Res_dwn.gif','Butto
ns/Contact_dwn.gif')">
<table width="700" border="0" cellpadding="0" cellspacing="0">

2. Then change this -

<table width="700" border="0" cellpadding="0" cellspacing="0">

to this -

<div id="wrapper"><table width="700" border="0" cellpadding="0"
cellspacing="0">

and this -

</div>
</body>

to this -

</div>
</div>
</body>

This will have now wrapped everything on the page in a division called
"wrapper".

3. Now, add this to your stylesheet -

body {
text-align:center;
}

#wrapper {
text-align:left; /* this fixes a 'bug' in IE */
width:700px;
margin:0 auto;
position:relative;
}

==============

See what happens when you do that. Everything should once again center, yet
the 'layers' that are contained within #wrapper will now have their
positioning calculated based on the position of #wrapper, not on the
position of body. Then you can position your layers properly, and they will
always be properly positioned.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"KEB2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
So, on the portfolio page when you click on one of the logos, the layer
doesn't
come up on the far left side? That's what it's doing to me.
It's supposed to come up in the space between the blue side bar and the
thumbnails, not overlapping the blue.

I don't know what the deal is with that space. Maybe check the index page
for
it under that button, I had to unlink the portfolio page from the template
to
use the extension. If you can't find it, I certainly won't! Perhaps
when I'm
working on my other web page and get a place to post (with that
space-ibeam
issue) it I'll re-post that question....

Let me know if the layer comes up in the right area for you. I'm using
IE.




Reply With Quote
  #15  
Old   
KEB2
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 01:53 PM



Thanks for responding Murray. I do get the concept of why the layer is showing
to the left now. And I get the concept of the fix....but I think the fix is a
bit over my head. I'm not sure what to do with the information you gave
me.....I've never used CSS or know how it works, etc...I'll try to work
through it, but I'm completely lost in a sea of code and will be whimpering the
whole way. It's essentially my first page, and publish....I guess I just don't
get as much of DW as I thought I did. I'll post to let you know what's
happening....

Thanks,
Kari


Reply With Quote
  #16  
Old   
KEB2
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 02:40 PM



Okay, I THINK I got the first part down fine. I just went in the code and typed
that in....
I'm off to read about Style Sheets (again, I get the concept...actually using
it is another thing) to get that last bit.
I'm just not sure where I'm looking to change that..or add it in, whatever the
case may be.

I'm also trying to translate what you're saying to do into something that
"clicks" for me. I can't think in code (even though it's necessary) For
instance, that whole first part was having me change the table from "center" to
"default", correct? I think doing it this way helps me to learn the code, and
understand exactly what I'm doing. So, what function would I go to for the
whole <div> tag "wrapper" code I typed in? I typed it...but I don't understand
why.

Thanks for your help and patience. Off to read about CSS....




Reply With Quote
  #17  
Old   
KEB2
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 03:16 PM



Back again...I know I'm a PITA....

So, I figured out how to go to the CSS style sheet for the body and changed
the text alignment... On the very last thing you wanted me to do:

#wrapper {
text-align:left; /* this fixes a 'bug' in IE */
width:700px;
margin:0 auto;
position:relative;
}


Is that a NEW style sheet I need to create? Or ??


Reply With Quote
  #18  
Old   
KEB2
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 04:33 PM



If you've made it this far through my psycho babble I appreciate it. I'm now at
a stopping point again. I went ahead and just typed in the code how you had
it...and voila....a new style sheet was there.... The only thing is...the
layers are still coming up to the left. They are positioned where I want them
in DW. I've uploaded the new version...so go to http://members.cox.net/kebower
and click on the portfolio link once more.... I'm at a loss. Did I not do
something correctly?


Reply With Quote
  #19  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 04:54 PM



I'll have to get back to you later on this - but you've done a great job of
intuiting your way through my instructions as far as I can tell!

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"KEB2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
If you've made it this far through my psycho babble I appreciate it. I'm
now at
a stopping point again. I went ahead and just typed in the code how you
had
it...and voila....a new style sheet was there.... The only thing is...the
layers are still coming up to the left. They are positioned where I want
them
in DW. I've uploaded the new version...so go to
http://members.cox.net/kebower
and click on the portfolio link once more.... I'm at a loss. Did I not do
something correctly?




Reply With Quote
  #20  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Can I do this? - 07-05-2004 , 04:57 PM



Oh - quick!

Change this -

</div><table width

to this -

<table width

I didn't want you to end that division without wrapping the entire page in
it. By removing this premature end tag, you will force the wrapper division
to go around the entire content, and everything should sort out....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"KEB2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
If you've made it this far through my psycho babble I appreciate it. I'm
now at
a stopping point again. I went ahead and just typed in the code how you
had
it...and voila....a new style sheet was there.... The only thing is...the
layers are still coming up to the left. They are positioned where I want
them
in DW. I've uploaded the new version...so go to
http://members.cox.net/kebower
and click on the portfolio link once more.... I'm at a loss. Did I not do
something correctly?




Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.