Well, I am struggling & not ashamed to admit it. I have never had to work with the code to any extent before except to copy & paste a paypal button. Now I have SCC Pro & need to customise it slightly to get the look I want. I pasted the code I needed into the area I wanted the effect in & the text does not align to the centre. The code I used was directly cut from my webeditor. It works on my website but the code won't do what it's told in SCC. The code below.
<p style="text-align:center;"><span style="font-size:18pt;"><b><font color="red">Welcome to my new look Shop</font></b></span></p>
Now in search of answers I have been to a few helpful spots in the forum & collected various snippets of code to do various things, but none of them combine the effects I want in one snippet, so I have played around with it for quite a while until I perfected the result required. Now I got the same result with 2 different ways of writing it. Which is the best way.
<p align="center"><font color="red"><span style="font-size:18pt;"><b>Welcome to my new look Shop</b></span></font></p>
and then I worked out a shorter version.
<p style="text-align:center;font-size:18pt;color:red;"><b>Welcome to my new look Shop</b></p>
Now what's got me stuffed is how I worked out the shorter version & for that matter the long one. I guess I will work it out again. I know it took me 30 mins of trial & error to get them both working. Another questions is, since my website uses the first style of code, will my site eventually not format the text & pictures properly as the standard changes over the next few years. I read a lot about deprecated & some of the tags in my first bit of code are using this. So why does it work in my editor & on the web but not in my SCC shop when I preview it.
Thanks
3 ways to write code. Which one??
The 3rd version is just fine from what I can see. The only disadvantage which is obvious to me is that you are going to have to add that line of code to every paragraph you create. If you had a separate file with all your css code in, and linked it to your pages, it would be enough to create that paragraph code just once and then the "instructions" would be valid for every other paragraph on that same page.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.