clickable area - Page 2 - Post ID 255519

User 434929 Photo


Ambassador
938 posts

The problem is in nature of RSD's produced code
<style>
ul.unorder-list.UL {
list-style-type: none;
}

li.LI {
display: inline-block;
padding: 9px 28px 9px 26px;
border-right-width: 1px;
border-right-style: solid;
border-left-width: 1px;
border-left-style: solid;
background-color: #15a60d;
}
</style>
<ul class="unorder-list UL" id="menu">
<li class="LI"><a title="" href="#">menu 1</a></li>
<li class="LI"><a title="" href="#">menu 2</a></li>
</ul>

As you see no style for a href , there is where you facing the issue.
=============== In Real HTML Environment We Would Have Something Like This :

<!DOCTYPE html>
<html>
<head>
<style>
ul#menu {
padding: 0;
}

ul#menu li {
display: inline;
}

ul#menu li a {
background-color: black;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 4px 4px 0 0;
}

ul#menu li a:hover {
background-color: orange;
}
</style>
</head>
<body>

<h2>Horizontal List</h2>

<ul id="menu">
<li><a href="/html/default.asp">HTML</a></li>
<li><a href="/css/default.asp">CSS</a></li>
<li><a href="/js/default.asp">JavaScript</a></li>
<li><a href="/php/default.asp">PHP</a></li>
</ul>

</body>
</html>
=========
But there is an option to have Text Link / Button element then style it as you want then you will have a whole box clickable link.
Guys at coffeecup are awesometacular.
User 2088758 Photo


Senior Advisor
3,111 posts

That looks like the padding on the column not the li itself. Select the li element "Bits" and set a padding on it.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 78051 Photo


Registered User
201 posts

Steve wrote:
Also, whilst I'm on the same project, am trying to get the blue backed text on top of the image panels automatically show on the bottom without using margin or padding to do this...am sure there is a way just not sure how!


Ill have a look at this part tonight. Will it not let you switch the elements around by dragging and dropping?


thanks :) apprecaite the input!
User 78051 Photo


Registered User
201 posts

Steve wrote:
That looks like the padding on the column not the li itself. Select the li element "Bits" and set a padding on it.

no, it is definitely the LI that is selected as you can see from an expanded screenshot of the same design window attached
Attachments:
User 78051 Photo


Registered User
201 posts

Mansour ... wrote:
The problem is in nature of RSD's produced code

But there is an option to have Text Link / Button element then style it as you want then you will have a whole box clickable link.


Many thanks Mansour. Will take a look... :)
User 2088758 Photo


Senior Advisor
3,111 posts

Well thats just crazy! I will have to admit i have never tried this before with RSD. I have either used a Text link or Button Link for a menu like that. I would have assumed that as soon as you add padding to the List Item Link it would have made the whole area clickable. I must be missing something here...

Thanks for the input Mansour :)
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 78051 Photo


Registered User
201 posts

@Steve, yep I though I was going mad...trying to figure out how / why etc!

am just going to revert to using a plain ol' text link

Thank you both for taking a look :D
User 434929 Photo


Ambassador
938 posts

Jamie wrote:
Hey Guys

Have set up a ul link section - kept it in the vertical - styled it etc but what I am struggling to do is to get the whole line be a clickable link rather than just the text that is being used
Cheers
Jamie


I found a cool trick to make perfect ul( Unordered List ) link with whole clickable area in a box.
watch out for upcoming tutorial.
Guys at coffeecup are awesometacular.
User 78051 Photo


Registered User
201 posts

Mansour ... wrote:
I found a cool trick to make perfect ul( Unordered List ) link with whole clickable area in a box.
watch out for upcoming tutorial.

nice one Mansour - look forward to seeing it. In the meantime Have just used the text link element...
User 458539 Photo


Registered User
1,635 posts

Jamie

Was doing some forum freeloading and on a completely different subject - how are you handling the search option on the site. I would like to start doing that but don't know how.

Thanks

Byron

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.