Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Mindy E
15,132 Pointsstyling signature lines with html and css
I need to display two lines and below the lines in subscript or smaller font put the word Signature and Title below the lines. Something similar to this: (first two lines would display signature and title below them)
Form completed by: _______________ ____________ Phone: ______________ Date: ___________
What's the best approach for this?
2 Answers
James Barnett
39,199 PointsTo get 'signature' & 'title' below the first 2 lines, use float & border-top. Then to draw lines inline with 'phone' and 'date' use display:inline-block & border-bottom.
I made you a demo with codepen to show you what I mean.
Stone Preston
42,016 Pointsis this an input form? or are you just displaying it for printing or something?
Mindy E
15,132 PointsIt's something they will print off and sign.
Mindy E
15,132 PointsMindy E
15,132 PointsAwesome! Thanks so much! :)
James Barnett
39,199 PointsJames Barnett
39,199 PointsMindy Effinger - Let us know if you have any more questions on this.
Once you've got your issue solved, mark this thread solved by choosing a
Best Answer.Mindy E
15,132 PointsMindy E
15,132 PointsI just finished trying it out, it works great! Thanks again!