Solved

Need to reduce the width of two elements of a page

Posted on 2010-11-20
4
354 Views
Last Modified: 2012-06-27
Hi!

I would greatly appreciate help narrowing the top banner and top menu bar so that they are right justified with the content box that is below the top menu bar.
http://www.topsecurityinc.com/testpage.html

I think the section of CSS that controls the width of these two elements of the page are:

.ts-1 {
      border: none;
      text-align: left;
      width: 1195px;  
}

.ts-1-1 {                       /* container around header */
      border:medium none;
      float: left;
      margin: 10px 0px 0px 10px;  
                     width: 1186px;  
}

.ts-2 {
      border:medium none;
      border-collapse: collapse;
      overflow: hidden;
      text-align: left;
      width: 1195px;
}

.ts-2-1 {           /* container around top navigation bar */
      border: none;
      float: left;
      height: 42px;
      line-height: 1px;
      padding: 0px;
      margin-bottom: 0px;
      width: 1145px;
}

Please be specific.

Thank you.
0
Comment
Question by:TrueBlue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
warhero earned 250 total points
ID: 34182816
try adjusting the width of the elements by percentage rather than pixel rate, and then change the width of content based on that. this also helps increase the usability across users with different screen size.

hop it helps.....
0
 

Author Comment

by:TrueBlue
ID: 34182899
I tried adjusting the width with a fixed pixel but it did not change anything but move the banner and bar to the right instead of to the right.

Any specific values would be appreciated.
0
 
LVL 25

Assisted Solution

by:kevp75
kevp75 earned 250 total points
ID: 34182966
'Moved the banner bar to the right instead of to the right'?     Isn't that what you wanted?

Try float:right
0
 

Author Comment

by:TrueBlue
ID: 34183745
Sorry,

I meant to say I want the top banner and top navigation menu's right border to be aligned with the right border of the main white content box.
Currently, both the top banner and top navigation bar are too far to the right by about 155 pixels I think.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to dynamically set the form action using jQuery.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question