42 pointsStarting to get into this DEV thingI'm new here
phyve
Member
—
11th January 2012
I'm trying to float the code snippet below in this //Print Excerpt below. I'm not a coder, just a designer hacking around but I'm not familiar with how I should change the markup to fix within the string.
note: "fr" is a class i created (float right)
<!-- take the code below to fit into the "print excerpt" string below this -->
<div class="fr" style="margin-left:10px;">
<span style="margin-right:5px;"> <?php dd_twitter_generate('Normal','3piggz') ?> </span>
<span style="margin-right:5px;"> <?php dd_google1_generate('Normal') ?> </span>
<span style="margin-right:5px;"><?php dd_fblike_generate('Like Box Count') ?> </span>
</div>
I'm trying to float the code snippet below in this //Print Excerpt below. I'm not a coder, just a designer hacking around but I'm not familiar with how I should change the markup to fix within the string.
note: "fr" is a class i created (float right)
<!-- take the code below to fit into the "print excerpt" string below this -->
<div class="fr" style="margin-left:10px;">
<span style="margin-right:5px;"> <?php dd_twitter_generate('Normal','3piggz') ?> </span>
<span style="margin-right:5px;"> <?php dd_google1_generate('Normal') ?> </span>
<span style="margin-right:5px;"><?php dd_fblike_generate('Like Box Count') ?> </span>
</div>
Responses (6)
WPMU DEV Fanatic — 11th January 2012 #
Hi phyve,
Hmm, is that // Print Excerpt. wrapped with php tags? I could see that just displaying on the page rather than executing the code.
Seems like you'll need at least this:
However, there'll need to be a context for $this. I assume there's more code to this?
-David
Member — 12th January 2012 #
Hi David,
Sorry, I didn't want to add the entire code, but I guess what I provided wasn't enough.
just trying to float below to the right of the code excerpt below.
EDIT: Posted by Mod at Pastebin as follows:
http://pastebin.com/ZjjjLfkD
WPMU DEV Fanatic — 12th January 2012 #
Hope you don't mind my posting that over at Pastebin! It's quite lengthy!
And just to check, what is it you're trying to float exactly? You mentioned the original 'fr' class would be floated right, correct?
So are you trying to float the php content left?
-David
Member — 12th January 2012 #
Great, I didn't even think to use paste bin.
To put it simply, I don't know how to format the "fr" markup to work within the php code.
I'm trying to merge the markup with the php content...
I don't think I would have to float the php content left though, I just want the html markup to be reformatted to work within the paste bin php.
If I try pasting the markup straight into the php I get errors.
Member — 18th January 2012 #
I never heard back from you on this issue
Let me know,
Thanks
Member — 31st January 2012 #
?
Become a member