Solved

CSS: table too wide for screen.

Posted on 2011-02-25
7
306 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
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.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filktering Alphabetically 8 32
Test if unique ID is in log file 5 22
PHP: Best way to scan folders and process files 10 42
Wordpress Query 5 27
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

807 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