• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
[code] text-align: "center";[/code] This is apparently incorrect CSS, because it's not centering my text. Doesn't work without quotes either. How do I fix it?
[QUOTE=lavacano;31276557][code] text-align: "center";[/code] This is apparently incorrect CSS, because it's not centering my text. Doesn't work without quotes either. How do I fix it?[/QUOTE] Should be without quotes. [code]text-align: center;[/code]
[del]you know actually never mind, I'll just drop that and stick "align=center" into the span tag. It's part of the footer php include anyway so not too big of a code change.[/del] that didn't work either [editline]22nd July 2011[/editline] [QUOTE=pdkm931;31276625]Should be without quotes. [code]text-align: center;[/code][/QUOTE][QUOTE=lavacano;31276557]Doesn't work without quotes either.[/QUOTE] [editline]22nd July 2011[/editline] So I guess my question is: How do I center-align a <span> tag without using <center>? [editline]22nd July 2011[/editline] I guess by changing it into <p>. ehh that works. Thanks anyway guys
text-align only works on block elements, which is why it wasn't working with span.
[QUOTE=garry;31276341]In firefox I liked using firebug to live edit the styles of a webpage. In Chrome with the firebug app it isn't so easy. Can anyone recommend an extension for chrome that lets you edit your stylesheet in plain text and have it update in the browser as you type?[/QUOTE] like this garry [img]http://dl.dropbox.com/u/11275736/s/doitlikethis.png[/img] although I prefer inspecting an element and changing the css on the right
[QUOTE=lavacano;31276648][del]you know actually never mind, I'll just drop that and stick "align=center" into the span tag. It's part of the footer php include anyway so not too big of a code change.[/del] that didn't work either [editline]22nd July 2011[/editline] [editline]22nd July 2011[/editline] So I guess my question is: How do I center-align a <span> tag without using <center>? [editline]22nd July 2011[/editline] I guess by changing it into <p>. ehh that works. Thanks anyway guys[/QUOTE] You can make a new span class: [code] span.center { text-align: center; } <html> <span class="center"> Centered text </span> [/code]
[QUOTE=Morphology53;31267721]I'd love an answer for this: Who at sony decided that a plaintext captcha was a good idea? [url]http://pro.sony.com/bbsc/jsp/forms/generateCaptcha.jsp[/url][/QUOTE] [img]http://dl.dropbox.com/u/11275736/s/yup.png[/img]
[QUOTE=Crhem van der B;31276512]Pretty sure Chrome can do that by default? Just Inspect element and changed the values to the right, it updates them real-time.[/QUOTE] I don't want to mess around clumsily editing single values. I want to edit the stylesheet itself. So if I do something I like I can copy and paste it into the real stylesheet. [editline]22nd July 2011[/editline] [QUOTE=Ac!dL3ak;31276902]like this garry [img]http://dl.dropbox.com/u/11275736/s/doitlikethis.png[/img] although I prefer inspecting an element and changing the css on the right[/QUOTE] can you edit that?
[t]http://i.imgur.com/s0fbz.png[/t] Yep
have some god damn tabs
[QUOTE=garry;31277067]I don't want to mess around clumsily editing single values. I want to edit the stylesheet itself. So if I do something I like I can copy and paste it into the real stylesheet. [editline]22nd July 2011[/editline] can you edit that?[/QUOTE] [img]http://dl.dropbox.com/u/11275736/s/ithinkitis.png[/img] I think so
[IMG]http://i52.tinypic.com/27ynzw6.png[/IMG] In Chrome.
Does anyone know why the entire thing messes up when you re-size the window? [url]http://beeeweee.com/testing/[/url] Don't be too harsh, I'm kinda new to all this. Edit: I mean can you somehow make the resizing not affect the content at all? Like on Facepunch, when I resize the window this reply box changes size, but the avatar stays there. [editline]23rd July 2011[/editline] Ugh I suck at this
[QUOTE=Swebonny;31279873]Does anyone know why the entire thing messes up when you re-size the window? [URL]http://beeeweee.com/testing/[/URL] Don't be too harsh, I'm kinda new to all this. Edit: I mean can you somehow make the resizing not affect the content at all? Like on Facepunch, when I resize the window this reply box changes size, but the avatar stays there. [editline]23rd July 2011[/editline] Ugh I suck at this[/QUOTE] [URL]http://beeeweee.com/testing/js/scrolling.js[/URL] This is the bit of code causing your problem I believe, it's resizing the #content_area, which I don't think you want. [CODE]$('#content_area, .item').css({width: width, height: height}); $('#mask').css({width: mask_width, height: height});[/CODE]
You are the man!
[QUOTE=Swebonny;31280420]You are the man![/QUOTE] add position:fixed; to the wrapper div to remove the big scroll bar. You may not see it, but I do.
why is the box diagmnal
What's the best way to learn basic graphic design for logos and shit?
About 75% of the time when I go to visit my low trafic site it takes 20 secounds to load or it does not load at all, I am on the mid range linux domain.com web hosting plan. Should I send a support ticket?
[QUOTE=Vbits;31303854]About 75% of the time when I go to visit my low trafic site it takes 20 secounds to load or it does not load at all, I am on the mid range linux domain.com web hosting plan. Should I send a support ticket?[/QUOTE] get a vps
I've got a problem that I haven't found any help to. I have a javascript function that makes a new dom element with document.createElement("canvas"). The function draws stuff on that canvas after it has been created. Now it has to insert that canvas element with the drawing in it to the webpage, right where the function was called. So when my page contains [code]<script>myfunc()</script>[/code] then the canvas it inserted right after the script element. I can't figure out how to insert the canvas to the page. I think that I could use [code]document.write('<canvas id="uniqueid" width="100" height="100"></canvas>')[/code] to put the canvas on the page with the unique generated id and then use document.getElementById("uniqueid") to access that canvas's context to draw on it. Is there a better way?
[QUOTE=sim642;31305686]I've got a problem that I haven't found any help to. I have a javascript function that makes a new dom element with document.createElement("canvas"). The function draws stuff on that canvas after it has been created. Now it has to insert that canvas element with the drawing in it to the webpage, right where the function was called. So when my page contains [code]<script>myfunc()</script>[/code] then the canvas it inserted right after the script element. I can't figure out how to insert the canvas to the page. I think that I could use [code]document.write('<canvas id="uniqueid" width="100" height="100"></canvas>')[/code] to put the canvas on the page with the unique generated id and then use document.getElementById("uniqueid") to access that canvas's context to draw on it. Is there a better way?[/QUOTE] I'd suggest adding a way to identify what put the element there (like parent or something), and place it after it and then giving it a unique id and such. That'd be your best bet, I think.
Greetings. I'd like to increment a value in a json file when a user accesses a php file I have on my server. Is there a way of doing this without reading the json in and then write it back out? Thanks.
[QUOTE=CrashGal;31308872]Greetings. I'd like to increment a value in a json file when a user accesses a php file I have on my server. Is there a way of doing this without reading the json in and then write it back out? Thanks.[/QUOTE] nope
I [I]fucking[/I] suck at jquery. Anyway, I would like multiple div(s) to fade in and out at the same location (But [B][U]not[/U][/B] at the same time) when the appropriate link is pressed in the navigation bar. How would I go about doing this?
[QUOTE=Chuushajou;31310612]I [I]fucking[/I] suck at jquery. Anyway, I would like multiple div(s) to fade in and out at the same location (But [B][U]not[/U][/B] at the same time) when the appropriate link is pressed in the navigation bar. How would I go about doing this?[/QUOTE] um [code] $(link).click(function(){ $(div-fade-in).fadeToggle(); }); [/code] with link being the link selector and div-fade-in being the div that you want to fade in selector. It'd be much easier if you posted the code though.
[QUOTE=Ac!dL3ak;31310824]um [code] $(link).click(function(){ $(div-fade-in).fadeToggle(); }); [/code] with link being the link selector and div-fade-in being the div that you want to fade in selector. It'd be much easier if you posted the code though.[/QUOTE] Basically it's; [B][U]Navigation:[/U][/B] [QUOTE] <div id="navigation"> <ul> <li><a href="#Welcome">Welcome</a></li> <li><a href="#Biography">Biography</a></li> <li><a href="#Portfolio">Portfolio</a></li> <li><a href="#Contact">Contact</a></li> </ul></div>[/QUOTE] [B][U]For the content section:[/U][/B] [QUOTE] <div id="content" class="Welcome"></div> <div id="content" class="Biography"></div> <div id="content" class="Portfolio"></div> <div id="content" class="Contact"></div>[/QUOTE] So when Biography is clicked, it'll appear- but have "Welcome, Portfolio, Contact" hidden.
[QUOTE=Chuushajou;31311534]Basically it's; [B][U]Navigation:[/U][/B] [B][U]For the content section:[/U][/B] So when Biography is clicked, it'll appear- but have "Welcome, Portfolio, Contact" hidden.[/QUOTE] why do they all have the same id's? anywho: give the a's classes that correspond to the content that you want to display, I.E. [code]<li><a href="#Welcome" class="awelcome">Welcome</a></li>[/code] and add the class "content" to all the content divs and then use the JS [code]$("a.awelcome").click(function() { $(".content").fadeOut(); $(".Welcome").fadeIn(); });[/code]
[QUOTE=Ac!dL3ak;31311725]why do they all have the same id's? anywho: give the a's classes that correspond to the content that you want to display, I.E. [code]<li><a href="#Welcome" class="awelcome">Welcome</a></li>[/code] and add the class "content" to all the content divs and then use the JS [code]$("a.awelcome").click(function() { $(".content").fadeOut(); $(".Welcome").fadeIn(); });[/code][/QUOTE] Oops, I got the id's and the classes mixed up.. ignore that! and thank you! I'll get back to you once I've tried it!
if your making a podcast can you link youtube video to the URL feed to itunes?
Sorry, you need to Log In to post a reply to this thread.