bbarinaga Posted October 26, 2020 Share Posted October 26, 2020 Site URL: https://www.bbarinaga.com/bap site url: https://www.bbarinaga.com/bap password: 1234 Hi! I wonder if someone can help me. I'm trying to underline the title pages on my web. However, I'm struggling with width. I tried setting it to a %, but it varies depending on the word (obviously). Is there a way to set the line to the width of the text? Please see screenshot: I want the yellow line to appear only under the title. Thank you! Link to comment
inunzi Posted October 26, 2020 Share Posted October 26, 2020 3 hours ago, bbarinaga said: Site URL: https://www.bbarinaga.com/bap site url: https://www.bbarinaga.com/bap password: 1234 Hi! I wonder if someone can help me. I'm trying to underline the title pages on my web. However, I'm struggling with width. I tried setting it to a %, but it varies depending on the word (obviously). Is there a way to set the line to the width of the text? Please see screenshot: I want the yellow line to appear only under the title. Thank you! There’s an easy way to do this! Let me test a code real quick. Link to comment
inunzi Posted October 26, 2020 Share Posted October 26, 2020 12 minutes ago, inunzi said: There’s an easy way to do this! Let me test a code real quick. Ok if your on sqaurespace 7.1 this will work but im not sure if it will work on 7.0. So, creat a code block and then type in this code below, into your code block and you can customize it however you want! If you have any questions please let me know and, also if you would like to change the underline color, I can give you the code for that too if you would like 😁! <CENTER> <h5> <p><u>Test Title</u></p> </body> </html> Link to comment
tuanphan Posted October 27, 2020 Share Posted October 27, 2020 Remove your code & add this CSS h1.page-title span { border-bottom: 4px solid red; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
bbarinaga Posted October 27, 2020 Author Share Posted October 27, 2020 Thank you so much, @inunzi. I'm using 7.0, but I appreciate your help 🙂 Thank you, @tuanphan, works perfectly. Link to comment
inunzi Posted October 27, 2020 Share Posted October 27, 2020 4 hours ago, bbarinaga said: Thank you so much, @inunzi. I'm using 7.0, but I appreciate your help 🙂 Thank you, @tuanphan, works perfectly. I’m sorry I didn’t look at your site so I didn’t see if it was a 7.0 or 7.1 . But tuan helped you though, so it’s not an issue now👍. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.