Solved

CSS: table too wide for screen.

Posted on 2011-02-25
7
299 Views
Last Modified: 2012-05-11
Hi experts,

Can anyone tell me why the table is exceeding the width of my screen please?  and just as importantly, how to correct it!

http://www.fobgfc.org/sqedit_03A.php

CSS files attached.

Ta,

  Col
admin.css
players-table.css
0
Comment
Question by:colinspurs
  • 3
  • 3
7 Comments
 
LVL 8

Expert Comment

by:pdd1lan
ID: 34979071
look like your table' s width has set for 100%

table.display {
      margin: 0 auto;
      clear: both;
      width: 100%;

}

you might need to adjust your table width to the size that you need.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34979077
What size is your screen? It fits OK on mine in both IE and FF
0
 
LVL 3

Author Comment

by:colinspurs
ID: 34979503
Hi, thanks for responding.  As usual, I didn't give all the story.

I'm using 1024 x 768.

Here's the page as it was before I brought in datatables and its attendant floating divs and CSS file, so something in there has upset it but I can't work out what it is.

http://www.fobgfc.org/EE2.php 
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 500 total points
ID: 34979720
From comparing the screens the big difference is the sort up/down arrows in each header. These are 20px wide and there are 12 of them so your screen is now 20x12 = 240px wider than it was

That's why it used to fit on a 1024px screen and why it easily fits on my larger screen (1280px).
0
 
LVL 3

Author Comment

by:colinspurs
ID: 34979808
Ah!  That will be it.

I'll see if I can abbreviate the column headings.

Thanks.

0
 
LVL 3

Author Comment

by:colinspurs
ID: 34979956
Blimey talk about "can't see the wood for the trees"!

Thanks again.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34980639
You're welcome...

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now