Is there a way to make the height of the hero box smaller?  Currently, it takes up too much height and I'd like for it to be shorter so more of the other stuff on the page shows up when the site is opened.

http://wherewomenblog.ning.com

 

Tags: hero box

Views: 132

Reply to This

Replies to This Discussion

Can you show me the code?

here's where i got the code to create a hero box:
http://creators.ning.com/profiles/blogs/design-tricks-4-adding-a

i added it all to my site and the entire box was way too tall ...in order words, it took up too much space. i removed the code from the left and center column only to get it back to the original columns for now.

You can resize the height by changing the height px:

Let me know if you need help i can get it right for you!

You will edit this': 

.space {height:270px;} /*Height of the Hero Area */

 

Good Luck! 

well, when i had the hero box all set up, i tried changing anything that had a ____px in in the code and nothing seemed to change. any other suggestions?

You have to match your content height px and the hero area space height. 

let me see your what you added(your html or image)

i do not currently have the hero box set up since i couldn't get smaller ...gone back to original column set-up for now. the box was just way too tall using code for hero box.

Ok try this, 

Lets give it try using this picture:: 

 

Lets start:

This code goes inside"Advanced " box

.space {height:100px;} /*Height of the Hero Area */
.module_text .xg_module_body {overflow:visible;}
#spotlight {margin-left:-245px;width:741px;}
#spotlight img, #spotlight embed, #spotlight object {padding:0; margin:0; max-width:741px;}

 

This code goes inside "Analytics" or "Custom box"

<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("#xg_layout_column_2").attr({_maxembedwidth: "741"});
}
</script>

 

Now back on the Main page, click the "Edit" button on the new Text Box in the left column (Text Box A) then insert the following snippet:
<div class="space"></div>

 

Now click the "Edit" button on the new Text Box in the center column (Text Box B), and insert this snippet:

<div id="spotlight" class="space"><a href="http://api.ning.com:80/files/OZXOyc20-J0cM6965EEUtWJDYhipsm-g3TItvg-zpv3l1IM4TXQZfT3toU3vMMLZSB8iZpgvBbXmeWG6V*k2bw__/herobox.jpg" target="_self"><img src="http://api.ning.com:80/files/OZXOyc20-J0cM6965EEUtWJDYhipsm-g3TItvg-zpv3l1IM4TXQZfT3toU3vMMLZSB8iZpgvBbXmeWG6V*k2bw__/herobox.jpg"></a></div>

Try this and let me know! 

RSS

Latest Activity


NC for Hire
Bernard Lama replied to Alexander's discussion 'Text Ticker in Ning Bar'
"Give this a try in custom code <script type="text/javascript">if (typeof(x$) !=…"
7 minutes ago
CocteauBoy replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"I mean no insult to anyone here, but I can't tell if it's the new (and old) Ning…"
18 minutes ago
Alexander replied to Alexander's discussion 'Text Ticker in Ning Bar'
"OK thank you!"
20 minutes ago

NC for Hire
Bernard Lama replied to Alexander's discussion 'Text Ticker in Ning Bar'
"OIC...then you need to insert the code using javasrcript technique.. I will let you know...soon"
22 minutes ago
Kos replied to Kos's discussion 'CSS Styling Disappearing/re-appearing'
"On a good note; the Preview in DS seems to be working now in FF (knock on wood) but you don't…"
23 minutes ago
Alexander replied to Alexander's discussion 'Text Ticker in Ning Bar'
"It scrolls but it is at the base of the page not the top!"
30 minutes ago

NC for Hire
Bernard Lama replied to Alexander's discussion 'Text Ticker in Ning Bar'
"You are welcome Alex...did you see any text scrolling from right to left in the ning bar area? Make…"
32 minutes ago
Alexander replied to Alexander's discussion 'Text Ticker in Ning Bar'
"Thanks Bernard, I did paste this in the Custom Code area, but do not see anything running on my…"
36 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service