Results 1 to 3 of 3

Thread: [RESOLVED] Background/Text Color(and positioning)

  1. #1
    Join Date
    Aug 2007

    resolved [RESOLVED] Background/Text Color(and positioning)

    So I'm trying to put together a business site. I was doing the layout with tables, but I switched halfway through to css. Aftering fooling around with it for a bit, I finally got almost what I wanted. The only thing I can't get is for the color of an area or text as defined in css to appear. The programs I'm working with are more than a little outdated, so bear with me here. Also, I'm wondering if there's a better way to position things than the way I've done it. I tried a couple different ways, but this seemed the only foolproof method.
    Here's the css:
    <style type-"type/css">
    H1 {font-size: 24pt; font-family: Georgia; font-weight: normal; text-decoration: none; text-align: center; text-indent: 0pt; margin-left: 10pt; margin-right: 10pt; color: #004203;}

    #wrapper {width: 850px; margin: 0px; border: solid 5px; background-color: #E0CAB9; padding:10px;}

    #header {width:800px; margin:0px; border:0px; height:150px;}
    #primarynav {width:800px; margin:0px; border:0px; height:60px;}
    #secondarynav {width:800px; margin:0px; border:0px; height:29px;}
    #tertiarynav {width:50px; margin:0px; border:0px; height:365px;}
    #contentframe {width:800px; margin 0px; border:0; height:365px; position: relative;}
    #content {width:300px; border:0px; height:365px; background-color:#F7D2B6;}
    #contenttext {width:350px; margin:0px; border:0px; height:365px;}
    #contentimage {width:450px; margin:0px; border:0px; height:365px;}

    And here's the html for the page:
    <link rel=stylesheet href="css.css" TYPE="text/css">
    <title> Schafer Appraisal Associates</title>
    <div id="wrapper" background-color="E0CAB9" style="position:absolute; top:0; right:100px; left:100px">
    <div id="header"><img src="logo.jpg"><br><img src="pre_os.jpg"><img src="order_status.jpg"></div>
    <div id="primarynav"><img src="home.jpg"><img src="about_us_active.jpg"><img src="apprsl_sandf.jpg"><img src="about_apprsl.jpg"><img src="order_apprsl.jpg"><img src="post_buts1.jpg"></div>
    <div id="secondarynav"><a href="au_cu.html"><img src="contact_us.jpg" border=0></a><img src="location_active.jpg"><img src="mission.jpg"><img src="staff.jpg"><img src="post_buts2.jpg"></div>
    <div id="contentframe">
    <div id="tertiarynav"><a href="au_location_nj.html"><img src="nj.jpg" border=0></a><br><a href="au_location_pa.html"><img src="pa.jpg" border=0></a><br><img src="below_buts_long.jpg"></div>
    <div id="content" style="position: absolute; top: 250px; right:542px"><h1>vcb</h1></div>
    <div id="contentimage"><img src="au_main.jpg" style="position:absolute; top:235px;right:0px" ></div>

    Any assistance you can render would be greatly appreciated.

  2. #2
    Join Date
    May 2005
    The programs I'm working with are more than a little outdated, so bear with me here.
    Don't blame it on the program. Notepad works real good.

    First, you don't have a doctype. Without one, you'll never get IE to pretend to be a modern browser. See my link below. Use html4.01 strict.
    Second, it looks like everything is an image. We don't have the images so its harder to help you.
    Third, you have a case of divitis, meaning, everything has a div. Divs are frequently the last thing to put in a web page and not the first.
    Fourth, we don't know what the page is supposed to look like.
    Fifth, even adding a proper doctype, you still have 20 html errors and one css error. Validate both and fix those errors.
    Can you put this online?

  3. #3
    Join Date
    Aug 2007
    I am well aware that the program is no excuse, and it was not ment as such, simply as a comment. Anyways, I took out some divs, added a doctype, and validated it. Both the css and html are valid, but when I threw in the doctype, the layout changed drastically. And sorry, but I haven't found a place to put it on the web yet. Thanks for the help.

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <link rel=stylesheet href="css.css" TYPE="text/css">
    <title> Schafer Appraisal Associates</title>
    <div id="wrapper" style="float:center">
    <div id="header"><img alt="" src="logo.jpg"><br><img alt="" src="pre_os.jpg"><img alt="" src="order_status.jpg"><br><img alt="" src="home.jpg"><img alt="" src="about_us_active.jpg"><img alt="" src="apprsl_sandf.jpg"><img alt="" src="about_apprsl.jpg"><img alt="" src="order_apprsl.jpg"><img alt="" src="post_buts1.jpg"><a href="au_cu.html"><img alt="" src="contact_us_active.jpg" border=0></a><a href="au_location.html"><img alt="" src="location.jpg" border=0></a><a href="au_mission.html"><img alt="" src="mission.jpg" border=0></a><img alt="" src="staff.jpg"><img alt="" src="post_buts2.jpg"></div>
    <div id="content"><div id="contenttextwide"><h2>Phone: (908) 218- 0271<br>
    Cellphone: (908) 963-3805<br>
    Fax: (908) 526-7209<br>
    Email: cnjappraisals@optonline.net</h2></div>
    <div id="contentimage"><img alt="" src="widemain.jpg"></div>

    <style type-"type/css">

    H2 {font-family: Georgia; font-weight: normal; text-decoration: none; text-align: center; text-indent: 0pt; color: #004203;}

    #wrapper {height:650px;margin: 0; border: solid 1px #FF7F50; background-color: #E9967A ; padding:25px; position:absolute; right:75px;}

    #header {width:800px; margin:0px; border:0px; padding:0;}

    #content {width:800px; margin:0px; border:0px; padding:0px; background-color: #F7D2B6; position:relative; right:0;top:0;}

    #contenttextwide {height:360px;margin:0px; border:0px; padding-left:0px; padding-top:45px;position:absolute; left:30px; top:0;z-index:1;}

    #contentimage {width: 750px; margin:0px; border:0px; padding:0; position: absolute; right:0;top:0;}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09135 seconds
  • Memory Usage 2,863KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates