caga595 — 2013-02-01T01:01:39-05:00 — #1
Any idea how to display two decorative 1-pixel wide vertical lines right next to one another?
ralphm — 2013-02-01T01:58:24-05:00 — #2
Yes, very easy, but it would help to have some context here. What is your layout and code?
paulob — 2013-02-01T03:29:08-05:00 — #3
As Ralph said without context its hard to give the right answer.:)
You could use the borders on two elements to create the lines or you could use :before and :after (ie8+) to place the lines or you could use an image or and so on....
caga595 — 2013-02-01T08:13:43-05:00 — #4
Here's what I ended up doing, but was wondering if there was a better way:
border-right:1px solid #CCCCCC;
border-right:1px solid #000000;
ralphm — 2013-02-01T08:16:06-05:00 — #5
It would be useful to see the HTML that goes with that, as otherwise it's hard to comment. Presumably the elements they apply to have no width?
caga595 — 2013-02-01T08:36:28-05:00 — #6
At this point, I'm just reviewing a PSD and haven't started coding the page.
paulob — 2013-02-01T09:56:30-05:00 — #7
Floating may not be a good idea because that may cause the content to drop in a fluid width. Can't you use the side borders on existing elements?
As Ralph said context is all important as there is no one size that fits all which means the best solution depends specifically on the task in hand.
caga595 — 2013-02-01T10:22:51-05:00 — #8
Good idea. I'll try that.