HTML Div to CSS?

I'm trying to convert this line of HTML div to CSS. I know you can use div in CSS, but I'm unsure if you can do a href with CSS.

Here's the code:

<div id="menubar1">
<a href="/">Bombing</a> <a href="/pugs">Cute Pugs</a><a href="/">Bombing</a><a href="/">Bombing</a>

I have everything else in CSS code form, and placed using the <style> attribute, though I want my website to have the header on all the pages, and it'd be a hassle copy and pasting throughout the pages, especially if I get to a point where people need to post things and etc.

I appreciate all of you generosity and help!


First of all, I don't know what mean by "converting HTML to CSS". You can't replace HTML with CSS, you can only style it.

About the other problem you're having, if you have a chunk of HTML that you want in every page you have like headers, footers, sidebars etc. you can put them on different HTML files and require or include them when needed. For example if you are using PHP that would something like:

    <?php require 'header.html'; ?>
<div id="content">
    <!-- content stuff... -->
    <?php require 'footer.html'; ?>

Need Your Help

change Querystring value when rewriting url

c# url-rewriting

I have a website of baby names for filtering gender I had a querystring "gender" that would have values: