August 25, 201214 yr Hey all, I'm somewhat of a newby to the web design world and I have a question that I couldn't figure out how to word for google. Basically I want this line (like in the portfolio, skills, and contact heading in this site... http://www.jorgenmortensen.eu/) to be on both sides of my h2 tags on my site. I'm pretty sure it's something in css to accomplish this but i wasn't sure what. Any help is appreciated! Zac
August 25, 201214 yr Hey all, I'm somewhat of a newby to the web design world and I have a question that I couldn't figure out how to word for google. Basically I want this line (like in the portfolio, skills, and contact heading in this site... http://www.jorgenmortensen.eu/) to be on both sides of my h2 tags on my site. I'm pretty sure it's something in css to accomplish this but i wasn't sure what. Any help is appreciated! Zac Could you be a little more specific as to what it is you're trying to achieve? What do you mean by the "line"? Do you mean the diagonal sloping lines in the background of the portfolio, skills, and contact heading? Or this: http://www.jorgenmortensen.eu/images/bg-logo-footer.png Also, when you say that you want this placed on both sides of h2 tags on your site, do you mean that you want it to cover the background of your h2 tags, to be on the top/bottom left/right? I'm confused!
August 26, 201214 yr Like this? http://jsfiddle.net/8wWbU/1/ ~evu. Just noticed, he uses images, I don't. Mine's scalable, his isn't. Edited August 26, 201214 yr by evu
August 26, 201214 yr I'm not sure what you mean either, but try this and see if either of teh h2 tags is what you want. <!DOCTYPE> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Test</title> <style type="text/css"> h2 { width: 700px; height; 40px; background: url(bg-menu.png); text-align: center; } h2 span.text1 { display: inline-block; background: #fff; margin: 0 50px; width: 130px; height: 40px; } </style> </head> <body> <h2>Skills</h2> <h2><span class="text1">Skills</span><span class="text1">Contact</span></h2> </body> </html> It centers the words inside the h2 tag, the first has the word over the diagonal background, the second has the words on white background with the diagonal image at the sides of the words.
August 26, 201214 yr Author Like this? http://jsfiddle.net/8wWbU/1/ ~evu. Just noticed, he uses images, I don't. Mine's scalable, his isn't. YES! Perfect, thank you!
August 26, 201214 yr Author Or this: http://www.jorgenmor...logo-footer.png Ya this is what I am trying to achieve!
Create an account or sign in to comment