Reputation: 36743
Here is a screenshot example:
Notice the border around the container. How can I achieve this effect for a website?
I've tried the following rule:
border: 1px dotted black;
And it results in:
Upvotes: 0
Views: 1389
Reputation: 5758
the size of the dots is controlled by the border-width - try border: 4px dotted #ccc;
Upvotes: 2
Reputation: 14219
Set margin-top
to 0.5em
on the text, and the border
to dashed
See this example
For the full layout try something like this
Upvotes: 0
Reputation: 82287
That is not entirely cross browser compliant as it is new in CSS3. You can read more about it here: http://www.css3.info/preview/border-image/
A more custom way to do it would be with two overlapping divs where one is only slightly larger than the other by either size or by using padding.
Upvotes: 2