Home MasterSlider CSS overwritten?

# MasterSlider CSS overwritten?

user2473
1#
user2473 Published in May 24, 2018, 11:17 pm
 I'm using MasterSlider on my Wordpress to display the images. The image suppose to look like this when each button is clicked. Which means the first slider will be replaced by the second slider. But every time when "But2" is clicked, the second slider size got smaller. This is the comparison for both sliders. I realised that whenever an inline style is added, the second slider image will shrink. Is there any CSS possibly overwritten the masterslider image size, causing it to be like this? Here is my code: function but1Function() { var x = document.getElementById("pic1"); x.style.opacity = "1"; var y = document.getElementById("pic2"); y.style.opacity = "0"; document.getElementById("item_desc").innerHTML = "

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

"; } function but2Function() { var a = document.getElementById("pic1"); a.style.opacity = "0"; var b = document.getElementById("pic2"); b.style.opacity = "1"; document.getElementById("item_desc").innerHTML = "

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

"; } #pic2 { position: absolute; top: 0px; opacity: 0; } 
[masterslider id="47"]
[masterslider id="48"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

 You need to login account before you can post.
Processed in 0.300276 second(s) , Gzip On .