Centering Cakeslice Code

alitomari

Registered Member
Joined
Apr 17, 2008
Messages
60
Reaction score
2
Hey I started using Cakeslice today. It's framing it how I want it but when I paste the html code into my index.html file, when viewed in the browser the iframe is aligned to the left side of the screen. I'd like to center it, but I've tried:

<center>
<div style="overflow: hidden; width: 100%; height: 100%; position: relative;" id="i_div">
<iframe name="i_frame" src="hxxp://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -690px; top: -319px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div>
</center>

<div style="text-align:center;"><div style="overflow: hidden; width: 100%; height: 100%; position: relative;" id="i_div">
<iframe name="i_frame" src="hxxp://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -690px; top: -319px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div></dive>

Neither one is working. Any help on changing the iframe's position would be greatly appreciated and would earn you mad thanks!
 
<div id="centering" style="margin-left: auto; margin-right:">
<div style="overflow: hidden; width: 100%; height: 100%; position: relative;" id="i_div">
<iframe name="i_frame" src="hxxp://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -690px; top: -319px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div>
</div>
just set the div width and height to whatever the iframe is
 
broked my own post, stupid internet,
you get the idea though
 
but aren't you scared that it'll leak your referrers?

it's known to do that.

unless youre just testing how it works..
 
Hey I tried your code and played around with it but what happens is if I do something like:

<div id="centering" style="margin-left: 50%; margin-right: auto;">

Then the beginning of the iframe (the left side) starts at the horizontal 50% position, instead of centering the iframe, so its still off center. I'm still searching for an answer to this I can't figure it out. Here is the code as it is now:


<div id="centering" style="margin-left: 50%; margin-right: auto;">
<div style="overflow: hidden; width: 390px; height: 157px; position: relative;" id="i_div">
<iframe name="i_frame" src="http://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -8px; top: -215px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div></div>
 
Last edited:
I'm testing it right now, I'm doing a DMR so what happens is I slice the offer in cakeslice, then replace the cakeslice offer url with my link that DMRs to the offer. When I tested that with the hxxp://www.junkbusters.com/cgi-bin/privacy its showing a blank referrer which is what I want. Correct me if I'm wrong but I think that should solve the referrer leaking?

Another question I had was is there any way to leak the page where the offer is being iframed? For instance, if I'm iframing an offer on abc.com/offer, is there any way for the abc.com/offer page to leak to the affiliate network? Because that would be really bad.
 
OK I finally figured it out here is the code if you're interested:


<div style="overflow: hidden; width: 390px; height: 157px; position: relative; margin:0 auto;" id="i_div">
<iframe name="i_frame" src="http://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -8px; top: -215px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div></div>
 
mate just put the code in a new layer
and move the layer around to where ever u want
hope that helped :P
 
Back
Top