Editing my Edit Mode

Permalink
I have a group of divs absolutely positioned at the bottom of my page. The cursive titles (4) are static images while the caption text (4) are editable C5 blocks.

When I hit edit mode all of the red-tape edit blocks pile up. However, hitting them still let's me edit content, it's just their positioning I can't figure out how to control.

Thanks for the help!

Joel

2 Attachments

joelhansen
 
joelhansen replied on at Permalink Reply
joelhansen
Update: I think I've narrowed the problem to absolute positioning - that seems to be the common denominator between broken pages and functional ones. Any input is appreciated. Thanks community!

Joel
boomgraphics replied on at Permalink Best Answer Reply
boomgraphics
Make a variable style declaration in your template.

if ($c->isEditMode()) {
echo 'style="position:relative;"';
}


Or any style that fixes it when you are in edit mode. You may have to play around with it a bit. CSS can be a tricky bastard. :-)
joelhansen replied on at Permalink Reply
joelhansen
You are spot on. I ended up giving most pages a separate, internal style sheet in the header for edit mode. Not ideal, but it lets me use absolute positioning.

Thanks again!

Joel
TheRealSean replied on at Permalink Reply
TheRealSean
you could also use a global style sheet which is only included in edit mode then set the values as !important to make sure they stick.
DianaAyub replied on at Permalink Reply
DianaAyub
hi! I'm new to this and very lost, so you'll have to hold my hand through every step (sorry about that)
how do i make a global style sheet only for edit mode so i can define the positioning of the blocks to stay the same in edit mode?
any help's appreciated! thanks
TheRealSean replied on at Permalink Reply
TheRealSean
Do they need to be in a certain position while in edit mode?, I tend to ignore things being out of place when in edit mode to make things easier to edit.

But if you want to include a style sheet,

within your header add
<?php
if($c->isEditMode()){
//include your css file here
//I would copy the css file call from the header and then place below, //I dont have it in front of me so can not remember the code
//to do this so here is the default stylesheet include?>
<link rel="stylesheet" href="/path_to_css" type="text/css" />
<?php
}
?>
DianaAyub replied on at Permalink Reply
DianaAyub
worked it out... thankyou!
andrea11 replied on at Permalink Reply
Hi!

anyone here who play online casino games such as poker, blackjack,baccarat, roulette, and slot machines?

If you are looking for great online casino game sites well i would recommend you JBET POKER and WILD JUNGLE CASINO. JBET Poker allows a variety of cash games and daily tournaments sure to suits any player. while Wild Jungle CAsino offer over 60 traditional Online casino games and you can ever play Progressives to be in to win Massive Jackpots!
Both site provide a 24/7 customer support team so you can contact or e-mail them to solve any issue or answer any questions that you may have.
To visit JBET POKER go to: jbetpoker.com
To visit WILD JUNGLE CASINO go to: wjc888.com
TheRealSean replied on at Permalink Reply
TheRealSean
Welcome Spam Bot
tudorsv replied on at Permalink Reply
Hello !
I did it like this:
<?php
if($c->isEditMode()){
$path = $this->getThemePath();
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"{$path}/css/stylesheet_name.css\" >";
}
?>
ShardCode replied on at Permalink Reply
ShardCode
the post made by TheRealSean.. maybe because i have the latest version of C5 .. it didn't work .. this code did - though i had to clear the cache in order to see the changes. thanks boss :)