1
guardian2k1
Setting [code] box with?

Is there a way to set the maximum width allowed when using XOOPS
?>
tags? I've noticed here and on other websites when using the code tag it can span 2-3 screens breaking the look of your website.
"Linux is extremely user-friendly. It also happens to be extremely selective when picking its friends."

http://www.nuxified.com | http://debcentral.org

2
dickinsd
Re: Setting [code] box width?
  • 2005/11/14 13:54

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


The size of the code and quote boxes are dictated by your themes css file.

Some themes include the size restrictions, some don't and some just don't work...

If your css file does not include the size details, you can just add the info to the css file.

I can see that you already have this info in your .css file.

div.xoopsCode {    

    
font-size1em;

    
font-familyFixedSys"Courier New",Courier,monospace;

    
background#FAFAFA;

    
border1px solid #6C87B0;

    
color#385a72;

    
width400px;

    
max-height250px;

    
margin0.5em;

    
overflowauto;

    
padding5px;

    }

div.xoopsQuote {    

    
font-size1em;

    
font-familyFixedSys"Courier New",Courier,monospace;

    
background#FAFAFA;

    
border1px solid #6C87B0;

    
color#385a72;

    
width400px;

    
max-height250px;

    
margin0.5em;

    
overflowauto;

    
padding5px;

    }


You can try to edit that info to manipulate the box sizes. perhaps a smaller width, perhaps using max-width??

If changes are not showing up, clear out the cache and template_c directories and refresh the page.

Like the look of your site by the way.

Dave

EDIT: That code is from the x22d theme, not sure if your other themes include the size restrictions.

3
guardian2k1
Re: Setting [code] box width?

I think the max-width is what I'm looking for. Keep things in check a little.

Thankyou for your comments. Still some major work required migrating our data from our previous site. But alls good:)
"Linux is extremely user-friendly. It also happens to be extremely selective when picking its friends."

http://www.nuxified.com | http://debcentral.org

Login

Who's Online

392 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 392


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits