Link to home
Start Free TrialLog in
Avatar of jagguy
jagguyFlag for Australia

asked on

reduce size screen

In wordpress twenty fourteen how do I reduce the size of the screen like
http://www.eternea.org/

Currently the webpage takes up the whole screen on a laptop  but on smaller devices I want the website to take uo the width of the screen
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

This link discusses the responsive features of the WP twenty fourteen theme.

http://www.wpstand.com/wordpress/themes/twenty-fourteen-wordpress-theme-responsive-fullscreen-layout.html
2013 was the year of "responsive design."  Twitter Bootstrap is widely praised as one of the right tools.  You may also like this introduction to the Grid, where the references and further reading sections are very well chosen.
http://www.adamkaplan.me/grid/
Avatar of jagguy

ASKER

Hi,

My question is that I want to modify the width of the website so it doesnt take up the full screen.
The above posts which are interesting but dont address this.
Have you tried to use CSS and set a width attribute on the container element?
http://codex.wordpress.org/Finding_Your_CSS_Styles

In related news, I don't think the Eternea site is a very good model to learn from!
Avatar of jagguy

ASKER

Yes I know how to set the width in css but in a wordpress site it doesnt do as expected.
This sets the width but hides part of the website on resize.
My question is about what can be done with twenty fourteen as I am wasting too much time with fiddling with css lookng at other links.

I tried this style. I would prefer not to keep chasing other possible answers on other links.

.site {
	background-color: #fff;
	max-width: 1060px;
	position: relative; left:8%;
	
}

Open in new window


also in css you are supposed to to do this but in wordpress how do I add a wrap tag?

#wrap {
      width: 900px;
      margin: 0 auto;
}

<html>
<head>
	<title>My Site</title>
</head>
<body>
<div id="wrap">

		<!-- WEBSITE GOES HERE -->

</div>
</body>
</html>

Open in new window

Yes I know how to set the width in css but in a wordpress site it doesnt do as expected.

1.

What is not happening that you think should be happening?

2.

What is happening that you think should not be happening?
be specific, provide screenshots.

if you want a fixed width twentyfourteen is not the theme for you to use
but if you really want, you can do something like this but that defeats the purpose of twentyfourteen and mobile friendly
.site {
	background-color: #fff;
	max-width: 1060px;
	min-width: 1060px;
	width:1060px;
	position: relative; left:8%;
	
}

Open in new window


also in css you are supposed to to do this but in wordpress how do I add a wrap tag?
if you are not sure what you are doing do not alter theme files except for the CSS
Avatar of jagguy

ASKER

I am happy with twenty fourteen it is just the full screen display for non-mobile devices.

For a full screen on pc or laptop I want a not so wide display. An ipad or mobile for full screen is fine.

This code needs to be in a media query? I can send screen shots later when I have more time

.site {
      background-color: #fff;
      max-width: 1060px;
      min-width: 1060px;
      width:1060px;
      position: relative; left:8%;
      
}
ASKER CERTIFIED SOLUTION
Avatar of jagguy
jagguy
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jagguy

ASKER

I found the solution