I have an array of various input boxes, that when filled, fills up the database with information. Then, from another file, I take the information and print it out to the screen.
What I want to do is to put a symbol in front of each line, however using something like .style br {}; doesn’t seem to work.
Reading the from MySQL, using WordPress if that matters.
EDIT:
I was asked to post how I want it to look like. I think this is pretty straight-forward, but here it is anyway:
@ Entry1
@ Entry2
@ Entry3
EDIT #2:
I would prefer it to be in CSS, if that’s not possible, then PHP. Javascript would be the last solution that I want.
I have tried the following and it didn’t work at all:
.myform.lines br {
border-bottom: 1px dashed #000000;
background-color: #ffffff;
display: block;
}
Hi have a look at Can you target <br /> with css?
I tried the following html page:
This results in
Here is some more code that also does basically the same thing – it adds a symbol (@) at the start of each line (assuming new lines follow a br).
Note that this does work in both firefox and internet explorer giving the same results. If you remove the space however then firefox shows a space anyway, and internet explorer shows no space. I think this won’t be an issue for you though, since you want the space.