A common problem when formatting your website with CSS is that the first line of text in a paragraph, header, or link is affected by margin or padding while the remaining lines are not. It may even appear as though the first line is indented in some cases while none of the others are. Solution for padding or margin only … Read More
Link - Category Archive
Authors Loop with Links to Pages – WordPress Tutorial
Creating the loop for a page that displays all of your authors in your WordPress website is something that’s not as straight-forward as you would think it would be. Additionally, actually linking to the author’s page is fairly tricky. So today I am going to show you how to do it. You can take the final code and put it … Read More
How to Force a Button or Link to be 100% Width CSS Tutorial
These are instructions on how to make an HTML link or button expand to be as wide as its parent element. Maybe you have been confused in the past and that darn link just never wants to grow. Here is the CSS you are going to want to apply to that link.
1 2 3 4 5 6 7 8 9 |
.fullwidth { width:100%; margin-left:0; margin-right:0; padding-left:0; padding-right:0; display:block; text-align:center; /*This will result in centering the link text, which is probably what you want -brianjohnsondesign.com*/ } |
And the corresponding HTML:
1 |
<a href="#" class="fullwidth">Subscribe now</a> |
The secret … Read More
PHP Script to Create Links to Each Subdirectory Using Page Titles as Anchor Text
I had a thought today. I have numerous, changing folders in part of my website, and I wanted to create a page that automatically generates links to each of those folders (or subpages) which I could then style and use, with the title attributes of the pages contained within those folders as the anchor text. So I did some Google … Read More
How to Link to Your Google Places Page: A Tutorial
I’ve had several people come up and ask me, ‘How can I give people a direct link to my business listing in Google Places?’ While at first it may seem impossible, it is actually quite easy. They may be looking to put this link on their website, share it with potential clients, put it on their business card, or one … Read More