| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5053|Reply: 0
Collapse the left

Overflow for CODE tag

  [Copy link]
Post time: 2013-08-07 22:35
| Show all posts |Read mode
Simple hack, who wants to have overflow for code tag's.

1) Open
...\template\your_template\common\module.css (or module_rtl.css for RTL version)

2) Find #1070 line
  1. .pl .blockcode { padding: 10px 0 5px 10px; border: 1px solid {WRAPBORDERCOLOR}; background: #F7F7F7 url({IMGDIR}/codebg.gif) repeat-y 0 0; overflow: hidden; }
Copy the Code
3) Add new attributes
  1. overflow: auto; height: 200px; }
Copy the Code
Example
  1. .pl .blockcode { padding: 10px 0 5px 10px; border: 1px solid {WRAPBORDERCOLOR}; background: #F7F7F7 url({IMGDIR}/codebg.gif) repeat-y 0 0; overflow: auto; height: 200px; }
Copy the Code
4) Save and clean the cache.

Demo

Before

After

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

Related collections:

  • · Tricks|Threads: 23, Subscribe: 3
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-24 15:54 GMT+3 , Processed in 0.017726 sec., 10 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list