OT: HTML help for beginner
jonny_trousers
Posts: 3,588
I've successfully used this community for help with non-bike related issues many times in the past and I could do with some help again now.
I'm in the process of teaching myself how to format documents for eBooks and I've hit a wall. I've been going through the processes set out in the book I'm following and all was good until I tried instructing the style sheet to centre paragraphs at times. I've twiddled with the code I was told to input, but I still can't get it to centre the three asterisks as in the screenshot from my text editor below.
Any help offered would be massively appreciated.
Cheers
I'm in the process of teaching myself how to format documents for eBooks and I've hit a wall. I've been going through the processes set out in the book I'm following and all was good until I tried instructing the style sheet to centre paragraphs at times. I've twiddled with the code I was told to input, but I still can't get it to centre the three asterisks as in the screenshot from my text editor below.
Any help offered would be massively appreciated.
Cheers
0
Comments
-
-
Ha! I'll see what I can do, but not only do I not know what a code box is, but because Bikeradar will no longer acknowledge that I have logged in (despite logging in) on my Mac, I'm having to do all my submitting here via my iPhone.0
-
Jonny_Trousers wrote:Ha! I'll see what I can do, but not only do I not know what a code box is, but because Bikeradar will no longer acknowledge that I have logged in (despite logging in) on my Mac, I'm having to do all my submitting here via my iPhone.
viewtopic.php?f=40033&t=13006375"Do not follow where the path may lead, Go instead where there is no path, and Leave a Trail."
Parktools :?:SheldonBrown0 -
nicklouse wrote:Jonny_Trousers wrote:Ha! I'll see what I can do, but not only do I not know what a code box is, but because Bikeradar will no longer acknowledge that I have logged in (despite logging in) on my Mac, I'm having to do all my submitting here via my iPhone.
viewtopic.php?f=40033&t=130063750 -
nicklouse wrote:Jonny_Trousers wrote:Ha! I'll see what I can do, but not only do I not know what a code box is, but because Bikeradar will no longer acknowledge that I have logged in (despite logging in) on my Mac, I'm having to do all my submitting here via my iPhone.
viewtopic.php?f=40033&t=13006375
Cheers. I'll log it.0 -
You're at least 1 } short it looks? Above P Centered?
I'm not a coder btw1997 Gary Fisher Big Sur
2009 Scott Spark 60
2010 Ghost 5000
2011 Commencal Ramones AL1
2012 Commencal Meta AM10 -
Pufftmw wrote:You're at least 1 } short it looks? Above P Centered?
I'm not a coder btw
Thanks. That one looks pretty obvious now you mention it. It could be a result of my tinkering and not a problem solver, but I'll give it a shot when I get home. Thanks for your help.0 -
You've not ended the bracket for the p definition. You need } below where you've declared your font-family
Going about it the long way though. Could have just done <p align="center">My Text</p>
Also, the inner span tag isn't required
Happy to help with any other Qs!2020 Reilly Spectre - raw titanium
2020 Merida Reacto Disc Ltd - black on black
2015 CAAD8 105 - very green - stripped to turbo bike
2018 Planet X Exocet 2 - grey
The departed:
2017 Cervelo R3 DI2 - sold
Boardman CX Team - sold
Cannondale Synapse - broken
Cube Streamer - stolen
Boardman Road Comp - stolen0 -
IC. wrote:You've not ended the bracket for the p definition. You need } below where you've declared your font-family
Going about it the long way though. Could have just done <p align="center">My Text</p>
Also, the inner span tag isn't required
Happy to help with any other Qs!
Thanks IC! Much appreciated!0 -
Jonny_Trousers wrote:IC. wrote:You've not ended the bracket for the p definition. You need } below where you've declared your font-family
Going about it the long way though. Could have just done <p align="center">My Text</p>
Also, the inner span tag isn't required
Happy to help with any other Qs!
Thanks IC! Much appreciated!
<p align="center"> is deprecated in HTML 4.01, and not valid in HTML5... you should use the CSS for centring as in your original code. The problem was the missing closing bracket on the first "p" definition, and as Jonny says you don't need the inner span tag either.Cannondale CAADX Tiagra 2017
Revolution Courier Race Disc '14
My Strava0