Solved

CSS: table too wide for screen.

Posted on 2011-02-25
7
309 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
[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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
HTML CSS and  Table design 4 55
history of pages 7 46
WordPress Blog (CSS?) to Suppress Automatic Hyphenation 6 28
center div inside another div 2 28
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

734 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