Jump to content

actionsketch

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by actionsketch

  1. the container elements wont scale to the size of the contained elements... least it shouldnt by W3 standards(I think). An easy way to see this is by just throwing a border: 1px red solid;on your container so you can see exactly how it behaves.I recently made a drop down menu system and had to create a varaible in javascript that said var overMenu returns 1 or 0 and just put onmouseover="overmenu=1" onmouseout="overmenu=0". But then I don't know what the behavor of your menus is. This works well if you're trying to a simulate windows dropdown menu style.
  2. you can either make your own in PHP, find one pre-made for download on the internet, or use the google site search(http://www.google.com/services/free.html)
  3. chances are, you'll have to do some restyling for IE... add a * infront of all your IE-only css and firefox will ignore it while IE does it, then you can change it around for IE without breaking your firefox style.
  4. Safari sucks. Use firefox. IE for mac is out of date and not worth developing for. Safari shouldnt have been released. Firefox is the only decent mac browser.
  5. if only it were that easy. Unfortunately since an alarming amount of people use IE, it would be a bad move to not make it work for IE. I just hope IE 7 works a lot better and comes out really soon! =pbut I did do and do do all my web dev in firefox.
  6. this isnt so much a javascript question than a "maybank2u" question. I suggest you either find a discussion board for said script or find someone willing to dig though the code for you. I think you might be on your own for that one.
  7. making width: 100% doesnt fix anything. Body is a child of <html> and nothing else.I have made a workaround that I dont much like... expecially since it doesn't work in IE, but I dont much like developing for IE anyway =p. I put <?php$width=getimagesize("artwork/".$filename);$width=$width[0];?>at the to and set the body style="min-width: <?=$width?>;"but like I said... this is kinda hacky and I'd like to know if there's a way to do it right.EDIT: I haven't uploaded the version described above just incase anyone else wants to take a shot at it.
  8. width is already set to 100%. It's only going as far as the window width instead of the website width.
  9. http://www.w3schools.com/sql/sql_insert.asp
  10. actionsketch

    Using DISTINCT

    interesting question... maybe. Have you tried something like:SELECT DISTINCT w3blah*FROM table_nameI doubt it'll work but it might... the * meaning wild card
  11. If you go to actionsketch.com and click on art and choose a picture that is either wider than the window that opens or you open one and just resize the window to be smaller than the picture... then the layout will cutoff right where the window stops. The problem is that when you use the horizontal scrollbar to see the rest of the picture, you notice the layout breaking. I cannot figure out how to fix this. If I give the layout a definite width, then it will work as long as the window is no larger than the width I gave, but then there's the whole centering issue. I'm not sure there is a way to fix this, but just in case there is, I'd sure like to know!
  12. too bad you dont want to use PHP, because it'd be easier. But to answer your question you can change the styles of your page with something like:document.getElementById('myIdName').style.color="black";so you'd give each number it's own id, probably corresponding to the number ex:<a id="05" href="05.htm">05</a>and in java script:document.getElementById('05').style.color="black";and I'm not totally sure, but you might need to use the onLoad event in the body tag to make it work properly... ex:<body onLoad="ChangeColorFunction();">but then again you might not need that...EDIT:I also just wanted to mention that PHP is not a replacement for HTML, it works side-by-side with it like javascript. Just mentioning this because it seemed weird to me when you said you were "using html not php".
  13. Well it's a very nice website. But your code is a mess, I'm sorry to say. I spent forever trying to figure out what was happening and I would have to spend forever more to figure out how to fix it.anyway, it seems like the testimonials isnt within the #blocks element, which is why it's acting funny.On a side note, when you have a website with this large of a CSS file and so many different div tags, its a really good idea to document both your html code and css code, as well as organize the css into easy to understand sections. This will make editing it faster for you to do in the future and easier for people like me to help you out. Also, indenting your code would make a world of a difference for me when I'm trying to figure out whats going on.
  14. here's everything you can do with the list marker in CSS:http://www.w3schools.com/css/css_list.asp
  15. What you're experiencing is a IE problem. IE is going to force the width out as long as something within it's element is wider than it is. Put your background stuff in a different element than your links and then see if you can get it to work right.
  16. actionsketch

    password

    what you're asking for needs to be done with either a pre-built package or you need to learn php
  17. yeah, but some of it is implemented in FF(didn't try IE)... some of the new forms stuff works and it says canvas works but it's buggy.EDIT:you can see a demo of <canvas> at http://developer.mozilla.org/samples/rayca.../RayCaster.htmlI'm not sure about the compatability but I use the FF beta and it works good.
  18. I could probably help you more if I could see an example, but I'll try anyway. It sounds like you might already know to do this... but I figure I migth as well say it:set the first div style to:position:relative;left:20;top:40;set the second div style to:position:relative;left:50;top:60;now... when the text changes size, it sounds like you want those value to change. This is always a problem. One option is to set the numbers to percents, but you can never get it to work perfectly. There's some nasty stuff you can do with javascript. And then there's just redesigning the site to either not set positons or set all font sizes to absolute px values.hope that helped =/
  19. actionsketch

    anchor

    you should take an HTML tutorial.
  20. On another note, I havent fooled around with it much but, javascript can be used as a stylesheet... apparently in the same way css can. Like I said, I dont know much about it but it might be worth looking into?http://www.web-developer-india.com/web/html/ch13_04.htmlwell... after reading it a little, it appears it's a netscape-only thing...
  21. whoa, HTML5... I had no idea there was such a thing!
  22. Well, I can't answer your question, but I can suggest a nice little hack for styles. When you have a style that you want to show up differently in IE, you just preceed it with a *.ex:margin-left: 20px;*margin-left: 22px;firefox will skip the * statement while IE takes the bait. Very handy
  23. you should be able to just set your div to float:left.
  24. you have to use CSS for all your styling in XHTML. As for your problem, make sure you have no padding in the cell and no margins in the table. As for centering, I believe you have to set the container to "text-align: center;" and the centered object to "margin: auto;"
×
×
  • Create New...