Forums / Templates, Stylesheets, Page Layout / Positioning Object to Top of Center Column?

Positioning Object to Top of Center Column?

Locked

Views: 827

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 May 2008, 10:39 AM
#1
dbb1 avatar

dbb1

Zen Follower

Join Date:
Jan 2008
Posts:
139
Plugin Contributions:
0

Positioning Object to Top of Center Column?

I have changed the template so that both my left and right column headers bump up directly against the horizontal NavMain bar, with no padding between them.

I've added a flash animation to the top of the center column, and would like it to bump up and rest against the bottom of the NavMain bar, too. However, the top edge of the flash movie begins almost 1/4" below the NavMain bar.

I've used the developer's toolkit for Firefox to change the CSS file so that I can see what my changes are doing. I have lessened the gap by decreasing the font size and by adding "#indexDefaultHeading {display:none;}", but no matter what I've tried, I can't get rid of that padding or margin, or whatever it is that's keeping my center column image from closing the gap with the Nav bar, as shown circled in red, below:

Any suggestions?

Thanks,
David

13 May 2008, 11:14 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Positioning Object to Top of Center Column?

This appears to be included as part of your flash - to see this add this to your stylesheet

#flashcontent {
margin-top: -2em;
}

Zen-Venom Get Bitten

17 May 2008, 4:39 PM
#3
dbb1 avatar

dbb1

Zen Follower

Join Date:
Jan 2008
Posts:
139
Plugin Contributions:
0

Re: Positioning Object to Top of Center Column?

kobra:

This appears to be included as part of your flash - to see this add this to your stylesheet

#flashcontent {
margin-top: -2em;
}


Wow!  Thanks, kobra!   :clap:

I had set the width x height params of the javascrip SWFObject to match the size of the actual .swf file I made.  There must have been enough of a difference in height to create the white space.  I stepped the height param down in SWFObject until there was just a thin white line, which is as good as it's going to get apparently, but it looks MUCH better.

Thank you!

DBB1