Jump to content

Notretsam

Members
  • Posts

    144
  • Joined

  • Last visited

Everything posted by Notretsam

  1. I changed the 750 to a % and added position:relative , but still did same thing Looked into using view.width (vw) but that not working either.
  2. yup line-height works, thanks After getting dinner and getting distracted by Big Bang Theory (awesome show), went back to it. So far I got coding with div working but certainly not perfect for all devices though. My thinking was the percentages on col1 widths would auto resize for screen res, like I would use on td tags before but nope, scroll bar at bottom appears when you reduce window size. .container { padding:5px; margin-bottom:20px; clear:both; display:table; text-align:center; width:750; } .col1 { width:60%; display:table-cell; padding:5px;} .col2 { width:20%; display:table-cell; padding:5px;} .col3 { width:20%; display:table-cell; padding:5px;} <div id="container"> <div class="col1"> FORM 1 CODE</div> <div class="col2"> FORM 2 CODE</div> <div class="col3"> FORM 3 CODE</div> </div>
  3. more of a post for others viewing here and wondering same as myself useful link on using divs for multiple columns. http://matthewjamestaylor.com/blog/perfect-3-column-blog-style.htm a variety of options available at top as well. In screenshot below I used the coding provided on the 3 forms, can see screenshot below. notice the title above the form, no matter what I tried I can't get the text to align (vertical) in center, and the post new shout is column 1 but displays in middle for some reason however, maybe it be useful for someone else that views this thread , and think the coding more for a site design, than what I was trying to use it for.
  4. I realize some people are going disagree with me here but this is my opinion, and I stand by it, but do have to remember I been using tables for around 15 years now , so hard to break a habit more am trying things out last few days, the more am thinking, that in certain situations, tables are the better choice still I feel. The CSS Multiple column is a nice start but until you can specifically dictate what data goes in what column, its not good for every situation, where as tables are. I realize divs can be used, but reason why I hate using divs is because to position them, you have to pretty much spend ages adjusting all kinds of things, an nothing should be that difficult. I always have issues with div content over lapping other content, divs is just a real pain to work with I find. I recognize the points made and some really good ones here on regards to using tables, but I just don't see the use of tables ever dying out , which appears HTML 5 is trying to go in that direction. People should certainly use Header, Nav, Section, Footer tags and other such HTML 5 layout tags, there excellent. People should also limit there use of tables as much as possible, but there always going be some situations where tables is the better choice. CSS Multiple Column has great potential and sometimes it will do what you want for you, but until you can specifically dictate what data goes in each column with it, then its just not good enough, but hopefully that will change through time. end of day, I agree with points made on tables being slightly slower to load and obviously visually impaired screen readers is a main issue as well, but until there is better options for multiple columns, then there still a need for tables for certain things I feel.
  5. thanks Ingolme, useful link seems to suggest that in project am updating, my players rankings would be a appropriate place to use tables and semi suggests forms as well. however, going try and do full site without tables, which based on first few pages I done, seems possible now to do.
  6. sorry dsone , didn't mean for you to recode the whole index page and take the time to do that, do appreciate it though stupid me didn't even consider adding id on form tag , so code you provided there, helped me get form on signup.php sorted thank you.
  7. not sure what you're point here is As for divs, have tried that and always found divs awkward to position
  8. so am curious when do people here think its appropriate to use tables in designs ? http://wrestlestarz.com/signup.php The form on this page, usually I would use a table for the form, have the text in left column and textfield in right column, and center align it. Have tried using the CSS column-count but just isn't sitting right or way I want it.
  9. yeah can take out div in header, which am pleased about, don't like using div. no idea why I didn't think of that. just seemed easier to quickly add some <br> tags to push some content down, maybe able to use margins and padding, but <br> does work. Guess that a each to there own thing. see what you mean about not adding width in the header etc tags within CSS, took that out. Pretty much copied the header etc listed on this page, http://www.w3schools.com/html/html_layout.asp , so presumed the width was needed.
  10. thanks to you justanotherguy, I upgraded mysql_ to mysqli_ at end of last year.
  11. Ingolme I see where you coming from but completely disagree about tables being hard to maintain , a site am upgrading to HTML 5 has 642 files (looked at windows properties for folder). Not all files are off course got table usage, but all pages on site was coded with tables, with exception of PHP processing with MySQL pages, was setup in a way for me to easily maintain site. I still think tables are not as bad as people make them out to be, but the HTML 5 layer tags (header,nav, section, footer) are much better for laying out a page, an dsoneuk point on accessibility problems for visual impaired using screen readers was enough to convince me on not using tables now.
  12. got to say am loving header, nav. section and footer tags, so easy to use an adjust. http://wrestlestarz.com/index.php fully coded without tables. sadly had to use div tag in header, as wanted the larger image on the right to auto adjust to the screen res viewer using. I also used css3 multiple columns to get logo and list (with tick images) into two columns, but noticed it doesn't work with IE9 or below. do many people still use IE9? I could google that but sure someone have a rough idea here on that. Link I used to see how that done: http://www.w3schools.com/css/css3_multiple_columns.asp thank you dsonesuk
  13. ok thanks dsonesuk I'll guess I see how it goes today with using HTML 5 tags then.
  14. ah handy to use sections multiple times. I presume class can be assigned to section like , <section class="sect1"> or is it id="sect1" This way you can style each section you have
  15. OK that is some facts I certainly wasn't aware off , especially number 4 and first I ever heard that content is looped through twice, which seems strange to me. Are you able to use <section> more than once on same page? I presume you can't
  16. I have learned the proper way to layout a page that works on all devices , its called using tables. An didn't I say I been playing around with HTML 5 tags, header, nav, section and footer today? That should show you, that I am trying to adapt to HTML 5. Am asking why HTML 5 is so anti-table when "clearly" there is nothing wrong with them, if there was something so wrong with using tables, then W3 validator would flag table as an error. Even w3 school page I linked in first post states creating layout with tables is not wrong, but just not recommended. So far nothing you have said makes me think tables is the wrong choice, I do appreciate the replies, but just because you and others think tables are wrong to use, doesn't mean they are. There is valid reasons for tables, which is why am baffled on table tags width and align being made obsolete, I see no logical reason for that, otherwise am stating I think these tags being made obsolete is wrong. I posted here because am open minded enough to know I could be wrong and missing something, I thought via discussion with members here, maybe that lead to me seeing the issue with tables, so far it hasn't.
  17. CSS text-align center doesn't work very well it appears. http://wrestlestarz.com/index.php am looking for the login form and logo + bulleted list to be aligned in center but text at bottom to be aligned to the left. text-align only seems to work with text, doesn't seem to align anything else in center, like a table. I have tried display, the header uses display:table-cell;, I do agree I need to learn how to align elements with CSS , but still say align="center" tag seems much easier and quicker to use. my design seems very basic? then I guess basic is best way to design then , because I always found way I design to be very efficient and work on all devices.
  18. Table CAN easily change a layout I have never used colspan or rowspan , so can't speak to that an my designs based on what I showed above have ALWAYS worked well on mobile phones I have been playing around today with HTML 5 using header, nav, section and footer. Getting parts of section area to align in center is a right pain, but with a table and align="center" tag, it easy and simple, but suddenly this isn't good enough in HTML 5, which makes no sense to me why.
  19. So looking into changing a website coded with HTML 4.01 Transitional to HTML 5 From what I seen so far, its very anti use of tables, which I find baffling. I noticed on http://www.w3schools.com/html/html_layout.asp , it says a bottom that it not recommended to use tables for layout, some google searching I did led me to a few web pages saying the same. I realize since am self taught designer, that maybe am missing something, so why am here asking. my question is why? Far as I care , tables have always been great for laying out a page and always been better than using DIV, as DIV can be very awkward to get content positioned where you want it, I always found tables easier and quicker to use. Below is example of how I structure <body> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="innerframe"> <tr> <td align="center"><?php include("surrond/header.php"); ?></td> </tr> </table> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <?php include("surrond/nav.php"); ?> </td> </tr> </table> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="innerframe"> <tr> <td> </td> <td> </td> </tr> <tr> <td width="1%"> </td> <td class="navbar" width="20%"> </td> <td width="78%" align="center"><h3 class="row"><?php echo "$corpname"; ?> - Add Show Image</h3></td> <td width="1%"> </td> </tr> <tr> <td> </td> </tr> </table> <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="innerframe"> <tr> <td width="2%"> </td> <td> </td> <td width="2%"> </td> </tr> <tr> <td width="2%"> </td> <td> <?php include("account/company/shows/addshowimage.php"); ?> </td> <td width="2%"> </td> </tr> <tr class="footer"> <td width="2%"> </td> <td align="center"> <?php include("surrond/footer.php"); ?> </td> <td width="2%"> </td> </tr> </table> </body> This to me is perfect, I can include header, navigation and footer into the page, which means I only got one page to edit/update when I make a change. An then I have the main content page which is also included, all the pages included are within folders which are organizied in a way I can easily locate what I need. I have a main table on this page which I use percentages for widths, so it auto resizes to a visitors screen resolution, I do use tables on pages that are included which the table width is 100%. The validator.w3 states that width and align tags for tables is now obsolete which completely baffles me on why, but I have found that I can use CSS to assign the widths instead. Center alignment is a whole other story and seems impossible, but certainly much more tricky than align="center" was. so can someone explain to me why HTML 5 is so much better when it seems to be anti use of tables? On surface HTML 5 with header, nav, section and footer tags looks great, but I find it baffling that table tags like align and width are now obsolete in HTML 5.
  20. the choices 1) two text files created for each match and match history and chat stored in them, so only data in text file would be for the match being viewed. or 2) 2 SQL databases with match history and match chat, but all match history/chat data in the SQL databases tables, but using match id column in SQL database to get correct information to show in match. right now its setup with option 2, just concerned in future I run into lag issues with SQL. going by you're last part of post Foxy, I think am right on doing it with SQL and not text files. just wanted to come on here and clarify best way to do it, an make sure before say a years time I run into lag issues.
  21. what is vague about my question? in a database table that potentially going have large amounts of information added to it, would I run into lag issues and therefore be better off using text files? am perfectly aware i can record the execution time , but am asking about the future and therefore trying to anticipate if this will be a potential problem.
  22. This isn't a question on any problems using SQL but is related to SQL. Am more wondering about the setup side here and decided to post here, an see what others think but could just be a case of me over thinking things. Am making a text based wrestling game and I store information related too matches in mysql databases. There is basically 3 database tables used to store the information Match Information: players stats and other such information (only one row of info for each match) Match Chat: all chat in a match stored in this table Match History: all the text info that shows if player landed the wrestling move successfully or not. My concern is more with the match history database table, I don't expect much chat in matches but is possible. Am concerned about potential lag with the history added to the one database table, we talking about a lot of matches potentially done daily. Even though processing of getting information is really fast, I believe the SQL query still loops through the database table until it finds a match. So am thinking, the more information added to database table, the slower it become and eventually there could be issues with lag. so wondering the following Am I just over thinking here and SQL be fine, and I never run into lag issues? Should I just use text files to store the history and chat, create text file when match first setup , so each match have its own text file. FYI. I not too familiar with the actual inner working of SQL with the web server, pay my hosting company to do that and I always use phpmyadmin to setup sql tables.
  23. oh duh , see it now , thanks again yeah didn't put a link within the a tag as off yet.
  24. okies fixed it all now, am good really seems to be awkward and ###### trying to sort it when adding to database , which is what i been trying to do for ages. today i looked at a fix for when pulling info from database and stripslashes("$bioFinal") works for me.
  25. well using $bioFinal = stripslashes("$bioFinal"); this sorts the issue when getting info from database still can't get http://wrestlestarz.com/profile.php?pid=%22The%20Superstar%22%20Daniel%20Starr URL to work, the pid just not picking up with names with "" in them.
×
×
  • Create New...