Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

demarcopbl

macrumors member
Original poster
Apr 28, 2009
32
0
hello all, been working on a new site layout and have run into a problem. I had been including white space and a dashed 'line break' at the bottom of my uploaded images so that when they appear on the site, it separates the images from the text. Now I have added rollovers different to the background color, you can clearly tell my workaround. Is there any way to do the line break/padding with css? basically I want the line to be the same length as the base of the image. See attached screens for reference. Thanks, Mike.
 

Attachments

  • Picture 2.png
    Picture 2.png
    192.6 KB · Views: 481
  • Picture 3.png
    Picture 3.png
    192.1 KB · Views: 256
You can do it with the border property
Code:
[I]selector[/I] {
 border-bottom: 1px dashed #000;
}
Can use dotted as well.
 
You can do it with the border property
Code:
[I]selector[/I] {
 border-bottom: 1px dashed #000;
}
Can use dotted as well.

Bingo! CSS can do quite a lot, and once CSS3 is a full accepted standard (ahem, IE) you'll be able to do even more.
 
thankyou angelwatt!!

thanks for the tip, worked like a charm. Appreciate your input.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.