Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

CSS Question: Graphical Borders?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-19-07 03:31 AM
Original message
CSS Question: Graphical Borders?
I had zero CSS experience before I started playing around with my DU journal, so this may be a dumb question.

Is there anyway that I can put graphical borders around elements in the journal? I have googled the heck out of this, and everything that I've found requires either nested "divs" in the html, or the use of javascript, neither of which, I assume, is possible in regards to the journals here.

It seems that there should be a way to use CSS to define borders using six images -- one for each corner (that would be "no-repeat") and one each for the vertical interior and horizontal interior (that would be "repeat"). Yet, this method has so far eluded me. Is this possible?

I guess it's no big deal if it's not, since I'm just doing this for fun anyway, but it would be cool. :)
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
FreeState Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Feb-20-07 02:33 AM
Response to Original message
1. CSS3
Edited on Tue Feb-20-07 02:39 AM by FreeState
CSS3 will do this - however almost no browsers support this yet. For now using CSS2 we are left with borders of lines and dots at certain thicknesses and colors. (See CSS2 Borders rules http://meyerweb.com/eric/css/references/css2ref.html)

The one way around it would be to use an image and make a DIV area with a set hight and width that fits the image and set the background image to that image. Its a little tricky...
Printer Friendly | Permalink | Reply | Top
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Feb-20-07 03:06 AM
Response to Reply #1
2. that's what I was beginning to figure
Thanks for the reply. I guess I can now go find the next unsolvable problem. :)

Thanks again.
Printer Friendly | Permalink | Reply | Top
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Mar-14-07 02:05 AM
Response to Original message
3. I found a way to do this
The general idea is explained at the link below. It seems that it's necessary to specify a fixed width for the column, in my case 500 pixels. If anyone has an idea on how to remove this limitation, I'd be interested in hearing about it.

Also, I'm getting, for lack of a better term, artifacts underneath some but not all of my posts. It seems to be that the one-pixel "interior" image is being reproduced just under some of my posts. If you know what is causing that, please let me know. It's probably something simple and stupid, but I haven't figured it out yet.

Thanks!

http://www.w3.org/Style/Examples/007/roundshadow.html
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Wed May 01st 2024, 01:01 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC