Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Proper framing

Posted by: Woijtek Feb 3 2019, 12:06 PM

Please find the link below and click the green button RUN!

https://www.w3schools.com/code/tryit.asp?filename=FZK43P6PBKXP

Question: how can one set up styles so that horizontal bars above and below "Peter Griffin" be continuous? (no small space in the middle)

Thank you in advance.

Posted by: Christian J Feb 3 2019, 02:17 PM

You might use "border-spacing: 0" and/or "border-collapse: collapse".


Posted by: Woijtek Feb 3 2019, 02:25 PM

QUOTE(Christian J @ Feb 3 2019, 02:17 PM) *

You might use "border-spacing: 0" and/or "border-collapse: collapse".


Thank you for your interest. The point is, I do not want to use "border-spacing: 0". I want it to be >0. Border-collapse produces the same effect as border-spacing: 0, so that is not what i am looking for. Regards.

Posted by: Christian J Feb 3 2019, 04:18 PM

You can use different values for horizontal and vertical, like this:

CODE
border-spacing: 0 2px;

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)