Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Need help with using something...
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sysode" data-source="post: 250772" data-attributes="member: 25453"><p>Okay this is how I've achieved it, not sure it's the best alternative but it'll do for now.</p><p></p><p>Your HTML:</p><p>[CODE]<li><a class="Button retrobutton" href="https://retroslist.com/vote/Wrex">Vote For {hotelname}</a></p><p></li></p><p><li><a class="Button GreenButton" href="Facebook Link Here">Like Our Facebook Page</a></li>[/CODE]</p><p>Notice how I've added a class to the first button "retrobutton" this will come in handy later - if you have both buttons the same class name with the same styles it won't work. </p><p></p><p>Now on to the CSS - the problem was (for me) that the first button wasn't appearing and this was fixed by adding a z-index:100; to make to appear. Then I could see that the buttons were overlapping (as you said). Anyhow here's the CSS:</p><p>[CODE].GreenButton {</p><p>background: #27ae60;margin-left:180px;}</p><p>.retrobutton {z-index:100;background:blue;}[/CODE]</p><p>I have kept your GreenButton class as it was when you posted this thread, only this time I had added a left margin to space it away from the first button ( you can play around with the actual width you want) and I have added a retrobutton class. The colour can easily be changed by yourself - so overall, the problem was just adding a left margiin to the second button to space it away from overlapping the first.</p></blockquote><p></p>
[QUOTE="Sysode, post: 250772, member: 25453"] Okay this is how I've achieved it, not sure it's the best alternative but it'll do for now. Your HTML: [CODE]<li><a class="Button retrobutton" href="https://retroslist.com/vote/Wrex">Vote For {hotelname}</a> </li> <li><a class="Button GreenButton" href="Facebook Link Here">Like Our Facebook Page</a></li>[/CODE] Notice how I've added a class to the first button "retrobutton" this will come in handy later - if you have both buttons the same class name with the same styles it won't work. Now on to the CSS - the problem was (for me) that the first button wasn't appearing and this was fixed by adding a z-index:100; to make to appear. Then I could see that the buttons were overlapping (as you said). Anyhow here's the CSS: [CODE].GreenButton { background: #27ae60;margin-left:180px;} .retrobutton {z-index:100;background:blue;}[/CODE] I have kept your GreenButton class as it was when you posted this thread, only this time I had added a left margin to space it away from the first button ( you can play around with the actual width you want) and I have added a retrobutton class. The colour can easily be changed by yourself - so overall, the problem was just adding a left margiin to the second button to space it away from overlapping the first. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Need help with using something...
Top