PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

HTML line breaks make styling results more difficult

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTML line breaks make styling results more difficult

    I was able to style most of the search results elements using simple css font and margin properties. However, some of the elements such as the search heading had html line breaks <br> added. This makes adjusting the spacing more difficult. A workaround was to use css rules such as

    div.searchheading br {display: none;},

    but it would be much easier if the line breaks were not there.

  • #2
    Agreed that the <br> line breaks are not necessary. However, they were put in place to deal with the majority of users who are not well versed with CSS and HTML, and often end up with no spacing between the results because they remove the default CSS.

    It was a compromise where the less experienced users still get decent looking results after their haphazard customisations of the search page, and more experienced users can still achieve what they want with a bit of CSS trickery.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X