简体   繁体   English

自定义joomla模板框架

[英]Customizing joomla template framework

I have problem customizing Helix Framework template. 我在定制Helix Framework模板时遇到问题。 I want to change width of the page to lets say 1140 px. 我想将页面宽度更改为1140像素。 If I do it in the framework menu it changes only text field width but all graphics stay full width. 如果我在框架菜单中执行此操作,它将仅更改文本字段的宽度,但所有图形均保持完整宽度。 How I can make it look like in attachment below? 如何使它看起来像下面的附件? I know I can use 我知道我可以用

body {
    width: 940px;
}

but it makes mobile version unreliable because there is fixed page width. 但由于页面宽度固定,因此移动版本不可靠。 So it becomes none responsive. 因此它变得没有响应。 Is there better way of editing the code? 有没有更好的方法来编辑代码?

Thank you! 谢谢!

If i can fully understand you... You can try this 如果我能完全理解您...您可以尝试

.container {
   max-width: 940px;
}

UPDATED (comment request) UPDATED(评论请求)

.body-innerwrapper {
   margin: auto;
   max-width: 940px;
}

If you would like to add background images for each or separate sections, then see below both screenshots 如果您想为每个或单独的部分添加背景图片,请参见下面的两个屏幕截图

Example Screenshot1: 屏幕截图1示例:

Add background image to section in Joomla Template 在Joomla模板的部分中添加背景图片

Example Screenshot2: 屏幕截图2示例:

Add fixed width to container(within background image) in Joomla Template 在Joomla模板中向容器添加固定宽度(背景图片内)

1 . 1 To making full size background image for any section then use below code (see first 1. To making full size background image for any section then use below code (see first 1. To making full size background image for any section then use below code (see Screenshot1) 要为任何部分制作完整尺寸的背景图像,请使用以下代码(请参阅第1部分。要为任何部分制作完整尺寸的背景图像,请使用以下代码(请参阅第1部分。要为任何部分制作完整尺寸的背景图像,请使用以下代码(参见截图1)

#sp-services-wrapper {
    background: url('put background image url here') #b64c52 top left no-repeat;
}

2 . 2 To add fixed width to any section then use below code (see Screenshot2) 要向任何部分添加固定宽度,请使用以下代码(请参见Screenshot2)

.container {
    max-width: 1170px;
}

(or) (要么)

#sp-services-wrapper .container {
    max-width: 1170px;
}

Just like above example, you may do for rest of each section you created 就像上面的示例一样,您可以对创建的每个部分的其余部分进行处理

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM