Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to make the sides of my website clickable , which will enable users to be directed to another website , this advantage will be helpful in using the website's sides and corners in ( eg : marketing ) ....
can i use the cascading style sheets ???
i tried to do that more one a time , i have searched many times about that on different websites , then i decided to ask you here on that wonderful website ...
So , your response will be appreciated ...
Posted
Comments
Manfred Rudolf Bihy 30-Sep-13 19:11pm    
You really are not that deep into doing any research yourself?
Please do observer the rules about asking questions here on CP.
There is a section especially suited for newcomers to take a serious look at: FAQ.

Cheers!
Sergey Alexandrovich Kryukov 30-Sep-13 19:59pm    
You are right, but in this case, I think some useful advice is still possible.
Please see my answer.
—SA
prof-mohamed atef 30-Sep-13 20:31pm    
OK Mr Alexandrovich , i am waiting your response

1 solution

A Web site does not have "corners" or "sides", but each Web page does. And everything on a page is clickable (after all, who can prevent one to click on a mouse button? :-)), the only problem is how you handle it. To make something responding to a click, you need to occupy this area with some DOM element, such as div. Test it:
XML
<div onclick="alert('div clicked')">Some content</div>


It is fairly easy to occupy top area and sides, but difficult to put something which is always at the bottom, because page height grows depending on its content. You can find many layout samples (yes, CSS should always be used) showing side columns which you can use this way, please see: http://bit.ly/15GXMpO[^].

However, it does not look as a good idea. First of all, something in your formulation of your question tells us that, by some reason, you consider that those "sides" of your site are not used for some useful content, and you want to use it. Is it really so? Why would you want it? If this is so, it looks ridiculous: as you did not know how to fill your page with content and want to use only the center, at the same time, you want to use unused "sides". Do you see the point? And, by the way, advertizement and other cases of navigation to other pages does not need click handling at all; for this purpose, there is an anchor element (<a>).

In fact, all those 3-column (or other columnar) design is the real trash of the Web, very popular and ugly. People really don't use those sides "by design". If you really want your side to stand out and be better for your users, try to do something different. In particular, try to embrace liquid, fluid and elastic design. Please see my past answer:
To Get Screen resolution[^].

—SA
 
Share this answer
 
v4
Comments
Nelek 30-Sep-13 20:46pm    
The OP wanted to tell you something in Solution 2
Sergey Alexandrovich Kryukov 30-Sep-13 21:53pm    
Thank you, Nelek, I answered...
—SA
prof-mohamed atef 8-Mar-14 22:02pm    
thanks very much , your response already have been appreciated
Sergey Alexandrovich Kryukov 8-Mar-14 22:21pm    
You are welcome.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900