Multi
Multi
Width
Topic Started: Wednesday, 3. February 2010, 21:01 (111 Views)
Knox<---
No Avatar
Live life like the captain of a sinking ship
Could someone explain how to set the width of a theme in CSS?
Edited by Knox<---, Wednesday, 3. February 2010, 21:01.
Previously known as Henry
Off
Profile
Quote
Top
 
Thane
Member Avatar
Manufacturing the future
In what units? Any or all?

px..
em..
%..

?
Posted Image
aspiring electrical engineer
Off
Profile
Quote
Top
 
Knox<---
No Avatar
Live life like the captain of a sinking ship
Pixels.
Previously known as Henry
Off
Profile
Quote
Top
 
Joe
Member Avatar
Hi.
Okay, the first thing you'll want to do is go into the layout and put a div around everything you want a specific width.

<div class="main">
<!-- All your main content... -->
</div>


and in the CSS:

.main { width:750px;margin:0px auto; }
Joe
Off
Profile
Quote
Top
 
Knox<---
No Avatar
Live life like the captain of a sinking ship
Your topic has been marked resolved or inactive. If the problem persists or reappears, feel free to request Live Support or repost your topic.
Previously known as Henry
Off
Profile
Quote
Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Resolved Issues · Next Topic »

Welcome Guest [Log In] [Register]
Outline Live
Loading..
Loading..