- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi,
I have build a repsonsive site using the bootstrap framework. I noticed that the complete site and elements respond to click events in a way that is not desired. I have tested this in Chrome and IE and both respond the same. So I think there is something in the CSS causing this.
When you click on a block or a paragraph of text the site is moving.
The URL of the site is: http://www.maaikesatelier.nl/overmaaike
I hope one of you guys can help me out.
Thx,
Marcel
It has to do with this border that is added :
.img-thumbnail:link, :visited, :active {
border: 1px solid #DDD;
}
On line 277 of home.css.
Thanks for your feedback but this isn’t the solution. When I click on every element it moves.
I think Shikkediel was on the right track.
This:
.ximg-thumbnail:link, :visited, :active {
border: 1px solid #ddd;
}
looks to be the culprit.
I suspect it’s incorrect and should be:
.ximg-thumbnail:link,
.ximg-thumbnail:visited,
.ximg-thumbnail:active {
border: 1px solid #ddd;
}
At the moment any element is getting this border when it is clicked.
Ah, that detail I missed. The added borders seem to be messing with collapsing margins or something (since all elements have box-sizing applied)…
Hi guys,
Thanks for your input. I just changed the css and it worked!
Thanks.
Marcel