By FishEagle on Friday, 17 November 2017
Replies 2
Likes 0
Views 1.6K
Votes 0
Hi, Can someone please confirm why JEvents is using the 'br' element to create spaces on the layouts of day/week view, instead of using padding or margin?
Hello,

Br is added to ad a line break which padding/margin doesn’t do. You would need to wrap it in a div or span and then define it as a 100% width block and drop down.

A br is valid html and tidier. What issue is this causing you?

Many thanks
Tony
·
Friday, 17 November 2017 08:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the reply Tony. I've managed to locate the line breaks, and by using template overrides, made some layout changes; removing the br elements at the bottom of the day/week view. (The gap was too big)

Was just thinking would've been easier to add padding/margin (more easily changeable in .css) instead of adding 3 line breaks in a .php file to create a gap at the bottom of a table. But, I understand what you saying. Thanks!
·
Friday, 17 November 2017 09:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post