Results 1 to 10 of 10

Thread: First code problems

  1. #1
    Join Date
    Nov 2011

    First code problems

    Hello. I have currently finished the skeleton for my first site and it should be up in a few days. I have wrote all the code myself using dreamweaver cs5. The only problem is I have put all of the text and pictures inside of one big border so when you minimize the screen part of the picture goes out side of the border. Is there any way I can make it so it stays inside the border?

  2. #2
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    Post the code. Or, even better, post a link to a test page.

  3. #3
    Join Date
    Nov 2011
    This is the contact me page code. I am not quite done with it and I want to make it look more profesional. But here is the sode any ways.(I know the menu bar and contact me form don't work I have to add the links.)


    <title>Contact Me</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">

    <body bgcolor="#999999">
    <div style="position:absolute;margin-top:270px;left:30%;margin-right:200px;">
    <ul id="MenuBar2" class="MenuBarHorizontal">
    <li><a class="MenuBar" href=""><font color="red">Home</font></a></li>
    <li><a href=""><font color="red">About</font></a></li>
    <li><a class="MenuBar" href=""><font color="red">Game</font></a></li>
    <li><a href="contact me.html"><font color="red">Contact</font></a></li>

    <div style="position:absolute; top:80px; left:188px; width: 650px;">
    <img src="../Desktop/contact.png" width="784" height="100">
    <div id="contact_form" div style=position:absolute;top:400px;left:35%;>
    <form action="contactformprosess" method="post" name="form1" id="form1">
    <font color="red">

    <input name="name" type="text" size="30" maxlength="40">
    <input name="email" type="text" size="30" maxlength="40"/>
    <textarea name="comment" cols="50" rows="10"></textarea></font>
    <input type="submit" name="submit" id="submit" value="Send Email"/>
    <input type="reset" name="reset" id="reset" value="Clear"/>

    <DIV STYLE="border:10px solid red;margin:25px;height:1000px;padding-right:25px;background:black;">

    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});


  4. #4
    Join Date
    Apr 2010
    Cocoa Beach, FL

    Layout ISSUES with HTML

    What platform are you using for your website? IS it a static content website with HTML only?

    Or is it a dynamic content website being powered by a server side language such as ColdFusion, PHP, or ASP.NET?

    Are you using CSS to generate the border? Are you using tables for your layout, or DIVs with CSS?

    I can certainly help you out with your website but I need to know the answers to these questions, also if you have a link to your problem page that would be helpful. I could examine it to determine the cause of the issue.


    Michael G. Workman

  5. #5
    Join Date
    Nov 2011
    I am using ccs, html and a bit of java script. I created the borders with ccs. What do you mean by tables? I a fairly new to this so sorry for my lack of understanding.

  6. #6
    Join Date
    Apr 2010
    Cocoa Beach, FL
    Tables were used in the first versions of HTML and were used to line up different content on the webpage. But over the years HTML tables have been slowly replaced with DIVS and CSS. Tables are more backwardly compatible with older web browsers, but are not as useful as DIVS with CSS.

    Here is an example of an HTML table to lineup some text content, and some DIVS and CSS that do the same thing.

    HTML Table:
    <table width='600' border='1'>
    <td>Label 1</td>
    <td>Label 2</td>

    DIV with CSS:
    <div style="width:600px;border:1px solid black;float:left">
    <div style="width:200px;display:block;float:left;border:1px solid black;">
    Label 1
    <div style="width:200px;display:block;float:left;border:1px solid black;">
    Label 2

    Hope this helps.

    Michael G. Workman
    Last edited by Michael_G; 11-23-2011 at 12:50 PM.

  7. #7
    Join Date
    Nov 2011
    Ok, thanks this should help a lot. Just one more question? Sorry about this but were would I put my content? Just inside the div tags or some were else? Sorry I am new to this.

  8. #8
    Join Date
    Nov 2011
    Sorry for the double post but just one more question. Does the table tag go inside of the body or in the head section?

  9. #9
    Join Date
    Apr 2010
    Cocoa Beach, FL

    TABLE Tags

    Table tags do not go in the head section, they only go in the body section of the HTML in the webpage.

    Do you have a link to your page on the internet where I can see your webpage?

    If I can look at your page directly I can help you with the content. But I have to go do some errands right now, I will be back on later this afternoon to answer questions you may have about webpages, HTML, and CSS.


  10. #10
    Join Date
    Nov 2011
    My web page is not published yet. The only reason I have not published the page is because it is kind of just like a practice thing I made for fun for my friend. I have some bigger more serious ventures I want to get into, I just wanted to get a hold of being able to make a website and get a strong understanding of html before I put the time into making a legit site. I wil post the code down below. This is just the home page. The other pages are also set up in the same way with just a few variations and all suffering the same problem. I still need to add pictures and some ads but that is for a later date.

    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">

    <body bgcolor="#999999">

    <div style="position:absolute; top:360px; left: 80px; width: 897px; height: 213px;">
    <h2><font color="yellow">Welcome to our website. We are detecated to bringing you the best games posable. The site is still in it's development stages so look for weekly updates and hopefully new games every few days. Fell free to contact me with any ideas on how to improve the site. This site is for you so feel free to email me sudjestions and things I could be doing better.</font></h2>

    <div style="position:absolute; top:80px; left:17&#37;; width: 650px;">
    <img src="../Desktop/home.gif" width="800" height="100" align="middle">

    <div style="position:absolute;top:270px;left:30%;">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBar" href="home-games.html"><font color="yellow">Home</font></a></li>
    <li><a href="about.html"><font color="yellow">About</font></a></li>
    <li><a class="MenuBar" href="games at school.html"><font color="yellow">Games</font></a></li>
    <li><a href="contact me.html"><font color="yellow">Contact</font></a></li>

    <DIV STYLE="border:10px solid yellow;margin:25px;height:1000px;padding-right:25px;background:black;">
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});

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.20527 seconds
  • Memory Usage 2,950KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (10)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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 (72):
  • 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_postinfo_query
  • fetch_postinfo
  • 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