Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS 3 Pixel Text Jog and wrapping issues

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24452
    blueturtle
    Participant

    Hi! I posted about the Div wrapping issues yesterday. I managed to fix the issue on all pages except for 3 of them. I can’t figure out why these 3 pages everything shifts to the left of the page leaving a huge gap down the right side. I think I have these pages set up the same way as the others, however, these 3 pages contain forms (not sure if this is related to the issue). The pages I’m referencing are "Contact", "Order a Transcript" and "Schedule a Court Reporter".

    Also, I am getting the 3 pixel text jog issue on most of the pages. I have the .mybuggyelement rule in there with the zoom set to 1, but I could be using it incorrectly. Any help is very much appreciated. Here is the test link:

    http://gregorycourtreporting.com.s62344 … index.html

    Here is my css

    Code:
    @charset “UTF-8”;
    a:link {
    color: #666666;
    text-decoration: none;
    }
    a:visited {
    text-decoration: none;
    color: #003366;
    }
    a:hover {
    text-decoration: underline;
    color: #003366;
    }
    a:active {
    text-decoration: none;
    }
    .blockheader {
    color: #FFFFFF;
    display: block;
    background-color: #003366;
    width: 194px;
    padding: 4px 20px 4px;
    font-size: 11pt;
    }
    .copyright {
    color: #333333;
    font-size: 10px;
    padding-top: 6px;
    text-align: center;
    }
    .boldbulletheading {
    color: #003366;
    font-weight: bold;
    font-size: 9pt;
    }
    h1 {
    font-size: 16pt;
    }
    h2 {
    font-size: 14pt;
    color: #003366;
    }
    h3 {
    font-size: 12pt;
    }
    .bottomNav {
    font-size: 9pt;
    text-align: center;
    line-height: 14pt;
    }
    .topNav {
    color: #666666;
    font-size: 10pt;
    float: right;
    padding-right: 20px;
    }
    .bodyother {
    line-height: 18px;
    font-size: 13px;
    text-align: justify;
    }
    .textfield {
    background-color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    }
    .body {
    font-size: 13px;
    text-align: justify;
    line-height: 20px;
    }
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    }
    .style5 {
    color: #003366;
    text-align: center;
    }
    h4 {
    font-size: 11pt;
    color: #003366;
    }
    .formlabels {
    color: #000000;
    font-size: 13px;
    }
    .bullets {
    font-size: 10pt;
    text-align: center;
    line-height: 13pt;
    color: #000000;
    }
    .sidebarheader {
    color: #003366;
    text-align: left;
    font-size: 13px;
    }
    .bodycenter {
    line-height: 18px;
    font-size: 13px;
    text-align: center;
    color: #000000;
    }
    .boldbulletheadingwhite {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 10pt;
    }
    .topnavblue:link {
    color: #003366;
    text-decoration: none;
    }
    .topnavblue:visited {
    text-decoration: none;
    color: #003366;
    }
    .bodyLeft {
    font-size: 13px;
    text-align: left;
    line-height: 20px;
    }
    #55539
    blueturtle
    Participant

    Thank you! That fixed the shifting problem on the 3 effected pages. I’m still getting the 3 Pixel Text Jog error when I run the validator. Do you know how I can fix it?

    #55541
    blueturtle
    Participant

    Thanks for the link, but I still can’t figure it out. If anyone can point out to me where my problem is, I would greatly appreciate it!

    Here is my link and css

    http://gregorycourtreporting.com.s62344 … index.html

    Code:
    @charset “UTF-8”;
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #333333;
    margin: 0; /* it’s good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    background-image: url(images/bcknd_800.jpg);
    background-repeat: repeat-y;
    background-position: 50% 0;
    }
    .twoColFixLtHdr #container {
    text-align: left; /* this overrides the text-align: center on the body element. */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 800px;
    }
    .twoColFixLtHdr #header {
    background: #ffffff;
    padding: 0; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    }
    .twoColFixLtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse – an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    }
    .twoColFixLtHdr #sidebar1 {
    float: right; /* since this element is floated, a width must be given */
    width: 217px;
    background-image: url(images/legalpad.jpg);
    background-repeat: no-repeat;
    padding-left: 10px;
    display: inline;
    overflow: hidden;
    margin-left: 10px;
    }
    .twoColFixLtHdr #mainContent {
    margin: 0 250px 0 0; /* the left margin on this div element creates the column down the left side of the page – no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div’s text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 0px 0 30px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    z-index: 1;
    padding-top: 25px;
    }.twoColFixLtHdr #mainContentwrap {
    padding-top: 25px;
    padding-left: 25px;
    float: left;
    overflow: hidden;
    margin-right: 0px;
    max-width: 774px;
    width: 760px;
    padding-right: 0px;
    margin: 0;
    }
    .twoColFixLtHdr #footer {
    padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
    }
    .twoColFixLtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse – a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    }
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 20px;
    }
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    }
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    }
    .mybuggyelement {
    z-index: 1;
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.